pidgin: b932d4f9: Treat FQY responses with no network ID a...

qulogic at pidgin.im qulogic at pidgin.im
Sun May 24 23:10:30 EDT 2009


-----------------------------------------------------------------
Revision: b932d4f94f9c771877b6a8a6a1d7dd3ea9c08005
Ancestor: 55897c4ce0787edc1e7721b7f4a9b5cbc8357279
Author: qulogic at pidgin.im
Date: 2009-05-25T03:06:12
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b932d4f94f9c771877b6a8a6a1d7dd3ea9c08005

Modified files:
        libpurple/protocols/msn/notification.c

ChangeLog: 

Treat FQY responses with no network ID as on the Passport network.

Fixes #9240.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	e9eba47ca64f1464779503ccd5b219283e0cb47f
+++ libpurple/protocols/msn/notification.c	34318439bd78e3289fd5c34ed85ed7018dfe4503
@@ -919,10 +919,10 @@ fqy_cmd_post(MsnCmdProc *cmdproc, MsnCom
 
 			passport = g_strdup_printf("%s@%s", local, domain);
 
-			if (!g_ascii_isdigit(cmd->command[0]) && type != NULL)
-				network = (MsnNetwork)strtoul(type, NULL, 10);
-			else
+			if (g_ascii_isdigit(cmd->command[0]))
 				network = MSN_NETWORK_UNKNOWN;
+			else if (type != NULL)
+				network = (MsnNetwork)strtoul(type, NULL, 10);
 
 			purple_debug_info("msn", "FQY response says %s is from network %d\n",
 			                  passport, network);


More information about the Commits mailing list