pidgin: a94299d1: Fix buddies not going offline.

qulogic at pidgin.im qulogic at pidgin.im
Thu Mar 15 00:33:05 EDT 2012


----------------------------------------------------------------------
Revision: a94299d1b48c77ebb3799a75fcc6a9a3480310ac
Parent:   0b0cc57042a17143bc1fd2c97beb91f2a54a9b85
Author:   qulogic at pidgin.im
Date:     03/15/12 00:25:32
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a94299d1b48c77ebb3799a75fcc6a9a3480310ac

Changelog: 

Fix buddies not going offline.

Fixes #14997.

Changes against parent 0b0cc57042a17143bc1fd2c97beb91f2a54a9b85

  patched  ChangeLog
  patched  libpurple/protocols/msn/notification.c

-------------- next part --------------
============================================================
--- ChangeLog	c1eed36309d264d404991be081a33ccb139f64e3
+++ ChangeLog	73ea060fb067e482d1f1b3534842ba2c1645ea80
@@ -24,6 +24,7 @@ version 3.0.0 (??/??/????):
 	MSN:
 	* Fix file transfer with older Mac MSN clients.
 	* Support file transfers up to ~9 EiB.
+	* Fix buddies not going offline.
 
 	MXit:
 	* Remove all reference to Hidden Number.
============================================================
--- libpurple/protocols/msn/notification.c	cceb9a499212be11045f9638719c8a924080f5b7
+++ libpurple/protocols/msn/notification.c	5793820fc05ff36eef44bbf6bef14264306e8140
@@ -1013,11 +1013,16 @@ fln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 fln_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)
 {
 	MsnUser *user;
+	char *passport;
+	int networkid;
 
 	/* Tell libpurple that the user has signed off */
-	user = msn_userlist_find_user(cmdproc->session->userlist, cmd->params[0]);
+	msn_parse_user(cmd->params[0], &passport, &networkid);
+	user = msn_userlist_find_user(cmdproc->session->userlist, passport);
 	msn_user_set_state(user, NULL);
 	msn_user_update(user);
+
+	g_free(passport);
 }
 
 static void


More information about the Commits mailing list