changeset 32756:5d1d4988c1bb

*** Plucked rev a94299d1b48c77ebb3799a75fcc6a9a3480310ac (qulogic@pidgin.im): Fix buddies not going offline. Fixes #14997.
author Mark Doliner <mark@kingant.net>
date Sun, 25 Mar 2012 21:22:36 +0000
parents d161358a7383
children d8668ce753e7
files ChangeLog libpurple/protocols/msn/notification.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Mar 14 07:24:02 2012 +0000
+++ b/ChangeLog	Sun Mar 25 21:22:36 2012 +0000
@@ -1,5 +1,8 @@
 Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul
 
+version 2.10.3:
+	* Fix buddies not going offline.
+
 version 2.10.2 (03/14/2012):
 	General:
 	* Fix compilation when using binutils 2.22 and new GDK pixbuf. (#14799)
--- a/libpurple/protocols/msn/notification.c	Wed Mar 14 07:24:02 2012 +0000
+++ b/libpurple/protocols/msn/notification.c	Sun Mar 25 21:22:36 2012 +0000
@@ -1013,11 +1013,16 @@
 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