# HG changeset patch # User Richard Laager # Date 1130267924 0 # Node ID 1452a3a9f07a5e7c2a71f5dcfe309a5c668d724a # Parent 9d6e498fe402a3d7b11c62df5e6f89c32ee10f65 [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: Tailor Script diff -r 9d6e498fe402 -r 1452a3a9f07a COPYRIGHT --- 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 Rob Foehl (rwf) Alan Ford diff -r 9d6e498fe402 -r 1452a3a9f07a src/protocols/msn/notification.c --- 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); }