changeset 31105:dfcd5190a4a9

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.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 09 Dec 2009 21:50:01 +0000
parents 735418d84442
children 1019ec61967a
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))