Mercurial > pidgin
diff libpurple/protocols/msn/notification.c @ 22570:1168dc635ac1
some other mobile stuff that Maiku fixed, fixes #2359
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Fri, 28 Mar 2008 07:58:20 +0000 |
parents | 575c4bda3b23 |
children | 05cb3f04c01e |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Thu Mar 27 06:32:31 2008 +0000 +++ b/libpurple/protocols/msn/notification.c Fri Mar 28 07:58:20 2008 +0000 @@ -1039,6 +1039,7 @@ PurpleConnection *gc; MsnUser *user; MsnObject *msnobj; + unsigned long clientid; int wlmclient; const char *state, *passport, *friendly; @@ -1064,6 +1065,9 @@ msn_user_set_object(user, msnobj); } + clientid = strtoul(cmd->params[5], NULL, 10); + user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE) || (user->phone.mobile && user->phone.mobile[0] == '+'); + msn_user_set_state(user, state); msn_user_update(user); } @@ -1179,7 +1183,7 @@ } clientid = strtoul(cmd->params[4], NULL, 10); - user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE); + user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE) || (user->phone.mobile && user->phone.mobile[0] == '+'); msn_user_set_state(user, state); msn_user_update(user);