changeset 32747:5ca6bba28a04

Fix buddies not going offline. Fixes #14997.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 15 Mar 2012 04:25:32 +0000
parents 82e6dca4293b
children ccb0beca179c 5b79a5b72689
files ChangeLog libpurple/protocols/msn/notification.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Mar 12 09:44:59 2012 +0000
+++ b/ChangeLog	Thu Mar 15 04:25:32 2012 +0000
@@ -24,6 +24,7 @@
 	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.
--- a/libpurple/protocols/msn/notification.c	Mon Mar 12 09:44:59 2012 +0000
+++ b/libpurple/protocols/msn/notification.c	Thu Mar 15 04:25:32 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