# HG changeset patch # User Paul Aurich # Date 1239640691 0 # Node ID 3371c36d77e8fbd0739aec2c2b47a163e2a2d74a # Parent 31c240da2cd3fffbfe39504f0fcb893146c86bd6 Alphabetize jabber_disco_type_from_string comparisons diff -r 31c240da2cd3 -r 3371c36d77e8 libpurple/protocols/jabber/disco.c --- 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);