changeset 31111:d32c0a73c689

Don't update the server with our own information on initial login, since we just sent it ourselves.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 14 Dec 2009 03:26:15 +0000
parents bd7942308234
children 88a3135c5a23 2d1e1556fa1f
files libpurple/protocols/msn/user.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/user.c	Sun Dec 13 09:44:27 2009 +0000
+++ b/libpurple/protocols/msn/user.c	Mon Dec 14 03:26:15 2009 +0000
@@ -188,6 +188,9 @@
 {
 	g_return_val_if_fail(user != NULL, FALSE);
 
+	if (user == user->userlist->session->user)
+		return FALSE;
+
 	if (user->friendly_name && name && (!strcmp(user->friendly_name, name) ||
 				!strcmp(user->passport, name)))
 		return FALSE;
@@ -449,7 +452,7 @@
 
 	user->msnobj = obj;
 
-	if (user->list_op & MSN_LIST_FL_OP)
+	if (user != user->userlist->session->user && user->list_op & MSN_LIST_FL_OP)
 		msn_queue_buddy_icon_request(user);
 }