Mercurial > pidgin
changeset 14496:aee74d84816c
[gaim-migrate @ 17215]
The changes I committed earlier, from a patch from wabz, resulted in notices in an AIM conversation that the buddy had changed the alias to (null). After looking at the code, I believe the old code was wrong, but maybe it's me that's wrong. In any case, I think this will clear things up.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 10 Sep 2006 07:02:23 +0000 |
parents | c804f41d61ae |
children | ae0f94b7f396 |
files | libgaim/server.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgaim/server.c Sun Sep 10 05:33:52 2006 +0000 +++ b/libgaim/server.c Sun Sep 10 07:02:23 2006 +0000 @@ -215,13 +215,16 @@ for (buds = buddies; buds; buds = buds->next) { b = buds->data; - if (b->server_alias && !strcmp(b->server_alias, alias)) + if ((b->server_alias == NULL && alias == NULL) || + (b->server_alias && alias && !strcmp(b->server_alias, alias))) + { continue; + } gaim_blist_server_alias_buddy(b, alias); conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, b->name, account); - if (conv != NULL) + if (conv != NULL && alias != NULL) { char *tmp = g_strdup_printf(_("%s is now known as %s.\n"), who, alias);