changeset 30666:735418d84442

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.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 09 Dec 2009 21:48:07 +0000
parents 60688353c010
children dfcd5190a4a9
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:44:06 2009 +0000
+++ b/libpurple/protocols/msn/notification.c	Wed Dec 09 21:48:07 2009 +0000
@@ -1667,7 +1667,10 @@
 	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",