cpw.qulogic.msnp16: e67fc1b6: Don't update the server with our own inf...

qulogic at pidgin.im qulogic at pidgin.im
Mon Dec 14 02:29:45 EST 2009


-----------------------------------------------------------------
Revision: e67fc1b6eccb8879246c1f55a677c5a7202372f8
Ancestor: dede4654623cc49242f31189f6ede189362703c8
Author: qulogic at pidgin.im
Date: 2009-12-14T03:26:15
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/e67fc1b6eccb8879246c1f55a677c5a7202372f8

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

ChangeLog: 

Don't update the server with our own information on initial login, since we
just sent it ourselves.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/user.c	9b780470975e82b5b07d80dd078faee175c0b13e
+++ libpurple/protocols/msn/user.c	4660ed90ed24c35fd611941095eb7043fe19227e
@@ -188,6 +188,9 @@ msn_user_set_friendly_name(MsnUser *user
 {
 	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 @@ msn_user_set_object(MsnUser *user, MsnOb
 
 	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);
 }
 


More information about the Commits mailing list