Mercurial > pidgin
comparison libpurple/protocols/msn/notification.c @ 29761:4ebecacf2fbb
Just because a user went offline, doesn't mean we should close the slplink
with them. Newer MSN allows holding a conversation while offline.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 19 Apr 2010 23:55:03 +0000 |
parents | f549ad844d54 |
children | ec89b1d8571a 7a26ff6c0044 |
comparison
equal
deleted
inserted
replaced
29760:1981a7798b17 | 29761:4ebecacf2fbb |
---|---|
981 | 981 |
982 | 982 |
983 static void | 983 static void |
984 fln_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 984 fln_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
985 { | 985 { |
986 MsnSlpLink *slplink; | |
987 MsnUser *user; | 986 MsnUser *user; |
988 | 987 |
989 /* Tell libpurple that the user has signed off */ | 988 /* Tell libpurple that the user has signed off */ |
990 user = msn_userlist_find_user(cmdproc->session->userlist, cmd->params[0]); | 989 user = msn_userlist_find_user(cmdproc->session->userlist, cmd->params[0]); |
991 msn_user_set_state(user, NULL); | 990 msn_user_set_state(user, NULL); |
992 msn_user_update(user); | 991 msn_user_update(user); |
993 | |
994 /* If we have an open MsnSlpLink with the user then close it */ | |
995 slplink = msn_session_find_slplink(cmdproc->session, cmd->params[0]); | |
996 if (slplink != NULL) | |
997 msn_slplink_destroy(slplink); | |
998 | |
999 } | 992 } |
1000 | 993 |
1001 static void | 994 static void |
1002 iln_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 995 iln_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
1003 { | 996 { |