cpw.darkrain42.xmpp.disco: 641dc58a: Alphabetize jabber_disco_type_from_strin...

paul at darkrain42.org paul at darkrain42.org
Sat Apr 25 16:16:49 EDT 2009


-----------------------------------------------------------------
Revision: 641dc58acdca4f27ccf9c42ee6d5fbc6cf599e42
Ancestor: e2c3e2c37656010595873a1f889306807526a97b
Author: paul at darkrain42.org
Date: 2009-04-13T16:38:11
Branch: im.pidgin.cpw.darkrain42.xmpp.disco
URL: http://d.pidgin.im/viewmtn/revision/info/641dc58acdca4f27ccf9c42ee6d5fbc6cf599e42

Modified files:
        libpurple/protocols/jabber/disco.c

ChangeLog: 

Alphabetize jabber_disco_type_from_string comparisons

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/disco.c	5fdb3399c71858e4c25b931ef140cde9dff1d936
+++ libpurple/protocols/jabber/disco.c	76e22e69554d2b0d21339400fe0c7092b791535a
@@ -633,24 +633,24 @@ jabber_disco_type_from_string(const gcha
 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, "smtp"))
-		return "smtp";
-	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, "msn"))
+		return "msn";
 	else if (!strcasecmp(str, "qq"))
 		return "qq";
-	else if (!strcasecmp(str, "msn"))
-		return "msn";
+	else if (!strcasecmp(str, "smtp"))
+		return "smtp";
+	else if (!strcasecmp(str, "xmpp"))
+		return "jabber";
+	else if (!strcasecmp(str, "yahoo"))
+		return "yahoo";
 
 	/* fallback to the string itself */
 	return str;
@@ -828,7 +828,7 @@ jabber_disco_service_info_cb(JabberStrea
 
 	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);


More information about the Commits mailing list