cpw.qulogic.msnp16: 1de23f23: Allow parsing info about ourselves from ...

qulogic at pidgin.im qulogic at pidgin.im
Mon Dec 14 02:27:15 EST 2009


-----------------------------------------------------------------
Revision: 1de23f23a40dc4f456858298e23df3c4da2d69f4
Ancestor: e3da5362fc53b50f515b470f01e5af75e856bb63
Author: qulogic at pidgin.im
Date: 2009-12-09T21:48:07
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/1de23f23a40dc4f456858298e23df3c4da2d69f4

Modified files:
        libpurple/protocols/msn/notification.c

ChangeLog: 

Allow parsing info about ourselves from a UBX payload. This is probably not
entirely correct, as it may or may not get looped when we change one of
these settings ourselves.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	90e6fb4ae50810221ba54a6256f8788d4c04206d
+++ libpurple/protocols/msn/notification.c	e28b7c7c78dc82e806a61490f59c2a8043dfa461
@@ -1667,7 +1667,10 @@ ubx_cmd_post(MsnCmdProc *cmdproc, MsnCom
 	account = session->account;
 
 	passport = cmd->params[0];
-	user = msn_userlist_find_user(session->userlist, passport);
+	if (g_str_equal(passport, session->user->passport))
+		user = session->user;
+	else
+		user = msn_userlist_find_user(session->userlist, passport);
 	if (user == NULL) {
 		char *str = g_strndup(payload, len);
 		purple_debug_info("msn", "unknown user %s, payload is %s\n",


More information about the Commits mailing list