Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/user.c @ 31464:2d1e1556fa1f
disapproval of revision 'e67fc1b6eccb8879246c1f55a677c5a7202372f8'
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 10 Dec 2010 05:00:07 +0000 |
parents | d32c0a73c689 |
children | 0a58b4f084fb |
comparison
equal
deleted
inserted
replaced
31111:d32c0a73c689 | 31464:2d1e1556fa1f |
---|---|
186 gboolean | 186 gboolean |
187 msn_user_set_friendly_name(MsnUser *user, const char *name) | 187 msn_user_set_friendly_name(MsnUser *user, const char *name) |
188 { | 188 { |
189 g_return_val_if_fail(user != NULL, FALSE); | 189 g_return_val_if_fail(user != NULL, FALSE); |
190 | 190 |
191 if (user == user->userlist->session->user) | |
192 return FALSE; | |
193 | |
194 if (user->friendly_name && name && (!strcmp(user->friendly_name, name) || | 191 if (user->friendly_name && name && (!strcmp(user->friendly_name, name) || |
195 !strcmp(user->passport, name))) | 192 !strcmp(user->passport, name))) |
196 return FALSE; | 193 return FALSE; |
197 | 194 |
198 g_free(user->friendly_name); | 195 g_free(user->friendly_name); |
450 if (user->msnobj != NULL) | 447 if (user->msnobj != NULL) |
451 msn_object_destroy(user->msnobj); | 448 msn_object_destroy(user->msnobj); |
452 | 449 |
453 user->msnobj = obj; | 450 user->msnobj = obj; |
454 | 451 |
455 if (user != user->userlist->session->user && user->list_op & MSN_LIST_FL_OP) | 452 if (user->list_op & MSN_LIST_FL_OP) |
456 msn_queue_buddy_icon_request(user); | 453 msn_queue_buddy_icon_request(user); |
457 } | 454 } |
458 | 455 |
459 void | 456 void |
460 msn_user_set_client_caps(MsnUser *user, GHashTable *info) | 457 msn_user_set_client_caps(MsnUser *user, GHashTable *info) |