changeset 26602:3371c36d77e8

Alphabetize jabber_disco_type_from_string comparisons
author Paul Aurich <paul@darkrain42.org>
date Mon, 13 Apr 2009 16:38:11 +0000
parents 31c240da2cd3
children 6b3a23ecbb42
files libpurple/protocols/jabber/disco.c
diffstat 1 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c	Mon Apr 13 16:35:13 2009 +0000
+++ b/libpurple/protocols/jabber/disco.c	Mon Apr 13 16:38:11 2009 +0000
@@ -633,24 +633,24 @@
 static const gchar *
 jabber_disco_type_from_string(const gchar *str)
 {
-	if (!strcasecmp(str, "xmpp"))
-		return "jabber";
+	if (!strcasecmp(str, "aim"))
+		return "aim";
+	else if (!strcasecmp(str, "gadu-gadu"))
+		return "gg";
 	else if (!strcasecmp(str, "icq"))
 		return "icq";
+	else if (!strcasecmp(str, "irc"))
+		return "irc";
+	else if (!strcasecmp(str, "msn"))
+		return "msn";
+	else if (!strcasecmp(str, "qq"))
+		return "qq";
 	else if (!strcasecmp(str, "smtp"))
 		return "smtp";
+	else if (!strcasecmp(str, "xmpp"))
+		return "jabber";
 	else if (!strcasecmp(str, "yahoo"))
 		return "yahoo";
-	else if (!strcasecmp(str, "irc"))
-		return "irc";
-	else if (!strcasecmp(str, "gadu-gadu"))
-		return "gg";
-	else if (!strcasecmp(str, "aim"))
-		return "aim";
-	else if (!strcasecmp(str, "qq"))
-		return "qq";
-	else if (!strcasecmp(str, "msn"))
-		return "msn";
 
 	/* fallback to the string itself */
 	return str;
@@ -828,7 +828,7 @@
 
 	purple_disco_list_service_add(list, service, parent);
 
-	/* if (flags & PURPLE_DISCO_FLAG_BROWSE) - not all browsable services has this future */
+	/* if (flags & PURPLE_DISCO_FLAG_BROWSE) - not all browsable services have this feature */
 	{
 		++list_data->fetch_count;
 		purple_disco_list_ref(list);