[gaim-migrate @ 14110]

Tue, 25 Oct 2005 19:18:44 +0000

author
David Fiander
date
Tue, 25 Oct 2005 19:18:44 +0000
changeset 11819
ed7eacf30277
parent 11818
e4d5b6c1a177
child 11820
534903b9226e

[gaim-migrate @ 14110]
SF Patch #1249461 from David Fiander

"When a buddy toggles Allow/Disallow mobile pages the
server sends an NLN command to the client with an
updated client id number (see
http://www.hypothetic.org/docs/msn/notification/presence.php).
This patch adds support for properly tracking the
mobile paging status of buddies."

committer: Richard Laager <rlaager@pidgin.im>

COPYRIGHT file | annotate | diff | comparison | revisions
src/protocols/msn/notification.c file | annotate | diff | comparison | revisions
--- a/COPYRIGHT	Tue Oct 25 16:15:12 2005 +0000
+++ b/COPYRIGHT	Tue Oct 25 19:18:44 2005 +0000
@@ -74,6 +74,7 @@
 Gábor Farkas
 Jesse Farmer
 Gavan Fantom (gavan)
+David Fiander
 Rob Flynn <gaim@robflynn.com>
 Rob Foehl (rwf)
 Alan Ford
--- a/src/protocols/msn/notification.c	Tue Oct 25 16:15:12 2005 +0000
+++ b/src/protocols/msn/notification.c	Tue Oct 25 19:18:44 2005 +0000
@@ -660,6 +660,7 @@
 	GaimConnection *gc;
 	MsnUser *user;
 	MsnObject *msnobj;
+	int clientid;
 	const char *state, *passport, *friendly;
 
 	session = cmdproc->session;
@@ -690,6 +691,9 @@
 		}
 	}
 
+	clientid = atoi(cmd->params[3]);
+	user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE);
+
 	msn_user_set_state(user, state);
 	msn_user_update(user);
 }

mercurial