cpw.qulogic.msnp16: 2b650fd4: Save extended capabilities of an MSN bud...

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


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

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

ChangeLog: 

Save extended capabilities of an MSN buddy when receiving NLN.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	dad27928edec2678ad2f127147bde8f3f866cba5
+++ libpurple/protocols/msn/notification.c	0d7e3de162bd088295789fced93ef06c01bea225
@@ -1291,7 +1291,8 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 	PurpleConnection *gc;
 	MsnUser *user;
 	MsnObject *msnobj;
-	unsigned long clientid;
+	unsigned long clientid, extcaps;
+	char *extcap_str;
 	int networkid;
 	const char *state, *passport, *friendly;
 
@@ -1322,10 +1323,15 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 		msn_user_set_object(user, NULL);
 	}
 
-	clientid = strtoul(cmd->params[4], NULL, 10);
+	clientid = strtoul(cmd->params[4], &extcap_str, 10);
+	if (extcap_str && *extcap_str)
+		extcaps = strtoul(extcap_str+1, NULL, 10);
+	else
+		extcaps = 0;
 	user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE) || (user->phone.mobile && user->phone.mobile[0] == '+');
 
 	msn_user_set_clientid(user, clientid);
+	msn_user_set_extcaps(user, extcaps);
 	msn_user_set_network(user, networkid);
 
 	msn_user_set_state(user, state);


More information about the Commits mailing list