Mercurial > pidgin
changeset 6833:ccfbd7c552ba
[gaim-migrate @ 7378]
Parse the MSNObject after setting the friendly name. This prevents the
MSNObject from appearing as the friendly name in the tooltip, due to
msn_url_decode using static buffers.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 14 Sep 2003 04:55:36 +0000 |
parents | f03c0085c424 |
children | 0ca11386b0d9 |
files | src/protocols/msn/notification.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/notification.c Sun Sep 14 03:26:27 2003 +0000 +++ b/src/protocols/msn/notification.c Sun Sep 14 04:55:36 2003 +0000 @@ -1052,6 +1052,8 @@ passport = params[2]; friend = msn_url_decode(params[3]); + serv_got_alias(gc, (char *)passport, (char *)friend); + if (session->protocol_ver >= 9 && param_count == 6) { user = msn_users_find_with_passport(session->users, passport); @@ -1060,8 +1062,6 @@ msn_user_set_object(user, msnobj); } - serv_got_alias(gc, (char *)passport, (char *)friend); - if ((b = gaim_find_buddy(gc->account, passport)) != NULL) status |= ((((b->uc) >> 1) & 0xF0) << 1); @@ -1471,6 +1471,8 @@ passport = params[1]; friend = msn_url_decode(params[2]); + serv_got_alias(gc, (char *)passport, (char *)friend); + if (session->protocol_ver >= 9 && param_count == 5) { user = msn_users_find_with_passport(session->users, passport); @@ -1479,8 +1481,6 @@ msn_user_set_object(user, msnobj); } - serv_got_alias(gc, (char *)passport, (char *)friend); - if (!g_ascii_strcasecmp(state, "BSY")) status |= UC_UNAVAILABLE | (MSN_BUSY << 1); else if (!g_ascii_strcasecmp(state, "IDL"))