Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/notification.c @ 25034:ea9e0fa89c02
Update the Address Book when we recieve a new friendly name for a buddy.
That should stop you from seeing a really really old name (or even just the
email address) for buddies who are offline when you sign in.
Fixes #8282.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 30 Jan 2009 03:27:38 +0000 |
parents | f5188d4d84e3 |
children | a214dc3807f8 |
comparison
equal
deleted
inserted
replaced
25033:f5188d4d84e3 | 25034:ea9e0fa89c02 |
---|---|
1092 } else { | 1092 } else { |
1093 purple_debug_warning("msn", "Received ILN with unknown number of parameters.\n"); | 1093 purple_debug_warning("msn", "Received ILN with unknown number of parameters.\n"); |
1094 return; | 1094 return; |
1095 } | 1095 } |
1096 | 1096 |
1097 if (msn_user_set_friendly_name(user, friendly)) | 1097 if (msn_user_set_friendly_name(user, friendly)) { |
1098 serv_got_alias(gc, passport, friendly); | 1098 serv_got_alias(gc, passport, friendly); |
1099 msn_update_contact(session, passport, MSN_UPDATE_DISPLAY, friendly); | |
1100 } | |
1099 g_free(friendly); | 1101 g_free(friendly); |
1100 | 1102 |
1101 msn_user_set_object(user, msnobj); | 1103 msn_user_set_object(user, msnobj); |
1102 | 1104 |
1103 user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE) || (user->phone.mobile && user->phone.mobile[0] == '+'); | 1105 user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE) || (user->phone.mobile && user->phone.mobile[0] == '+'); |
1235 if (user == NULL) return; | 1237 if (user == NULL) return; |
1236 | 1238 |
1237 if (msn_user_set_friendly_name(user, friendly)) | 1239 if (msn_user_set_friendly_name(user, friendly)) |
1238 { | 1240 { |
1239 serv_got_alias(gc, passport, friendly); | 1241 serv_got_alias(gc, passport, friendly); |
1242 msn_update_contact(session, passport, MSN_UPDATE_DISPLAY, friendly); | |
1240 } | 1243 } |
1241 | 1244 |
1242 if (cmd->param_count == 6) | 1245 if (cmd->param_count == 6) |
1243 { | 1246 { |
1244 msnobj = msn_object_new_from_string(purple_url_decode(cmd->params[5])); | 1247 msnobj = msn_object_new_from_string(purple_url_decode(cmd->params[5])); |