changeset 26948:7e6c8fed6ffa

Treat FQY responses with no network ID as on the Passport network. Fixes #9240.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 25 May 2009 03:06:12 +0000
parents 131e41a24d95
children 0f1b41c2f835
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Mon May 25 00:32:55 2009 +0000
+++ b/libpurple/protocols/msn/notification.c	Mon May 25 03:06:12 2009 +0000
@@ -919,10 +919,10 @@
 
 			passport = g_strdup_printf("%s@%s", local, domain);
 
-			if (!g_ascii_isdigit(cmd->command[0]) && type != NULL)
+			if (g_ascii_isdigit(cmd->command[0]))
+				network = MSN_NETWORK_UNKNOWN;
+			else if (type != NULL)
 				network = (MsnNetwork)strtoul(type, NULL, 10);
-			else
-				network = MSN_NETWORK_UNKNOWN;
 
 			purple_debug_info("msn", "FQY response says %s is from network %d\n",
 			                  passport, network);