cpw.qulogic.msnp16: 1e73925b: Allow receiving a NLN command from ourse...

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


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

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

ChangeLog: 

Allow receiving a NLN command from ourselves. This will probably need to be
changed so that when we're logging in we replace the other endpoint's
settings instead of saving them (if that's what's happening). Probably
should test this out sometime soon.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	e28b7c7c78dc82e806a61490f59c2a8043dfa461
+++ libpurple/protocols/msn/notification.c	bf2df464ef22d338b4e5b2e3f64de9e7ea738c77
@@ -1305,7 +1305,10 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 	networkid = atoi(cmd->params[2]);
 	friendly = purple_url_decode(cmd->params[3]);
 
-	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) return;
 
 	if (msn_user_set_friendly_name(user, friendly))


More information about the Commits mailing list