Allow receiving a NLN command from ourselves. This will probably need to be cpw.qulogic.msnp16

Wed, 09 Dec 2009 21:50:01 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Wed, 09 Dec 2009 21:50:01 +0000
branch
cpw.qulogic.msnp16
changeset 29430
6b04fe735f52
parent 29429
8432f350551a
child 29431
1d74bbb134ac

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.

libpurple/protocols/msn/notification.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/notification.c	Wed Dec 09 21:48:07 2009 +0000
+++ b/libpurple/protocols/msn/notification.c	Wed Dec 09 21:50:01 2009 +0000
@@ -1305,7 +1305,10 @@
 	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))

mercurial