cpw.qulogic.msnp16: d15bf628: Don't attempt to parse extended caps if ...

qulogic at pidgin.im qulogic at pidgin.im
Mon Dec 14 02:28:15 EST 2009


-----------------------------------------------------------------
Revision: d15bf628785d7f75d1e20ea90d5e351109495d17
Ancestor: 2b650fd4de082558366685491f40ff2297c23076
Author: qulogic at pidgin.im
Date: 2009-12-09T21:10:08
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/d15bf628785d7f75d1e20ea90d5e351109495d17

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

ChangeLog: 

Don't attempt to parse extended caps if not using MSNP16.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	0d7e3de162bd088295789fced93ef06c01bea225
+++ libpurple/protocols/msn/notification.c	734713fb84ee43b988ed59df30b1c236eadf7427
@@ -1324,7 +1324,7 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 	}
 
 	clientid = strtoul(cmd->params[4], &extcap_str, 10);
-	if (extcap_str && *extcap_str)
+	if (session->protocol_ver >= 16 && extcap_str && *extcap_str)
 		extcaps = strtoul(extcap_str+1, NULL, 10);
 	else
 		extcaps = 0;


More information about the Commits mailing list