Mercurial > pidgin
comparison libpurple/protocols/oscar/oscar.c @ 25803:8aa7d8bcbc7d
Alias foo. I think blist.h structs are now completely hidden.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 31 Oct 2008 21:06:26 +0000 |
parents | 8d562557ed6f |
children | 051c29d275de |
comparison
equal
deleted
inserted
replaced
25802:d93c93dfa435 | 25803:8aa7d8bcbc7d |
---|---|
5047 if (purple_buddy_get_account(b) == account) { | 5047 if (purple_buddy_get_account(b) == account) { |
5048 if (aim_ssi_itemlist_exists(od->ssi.local, bname)) { | 5048 if (aim_ssi_itemlist_exists(od->ssi.local, bname)) { |
5049 /* If the buddy is an ICQ user then load his nickname */ | 5049 /* If the buddy is an ICQ user then load his nickname */ |
5050 const char *servernick = purple_blist_node_get_string((PurpleBlistNode*)b, "servernick"); | 5050 const char *servernick = purple_blist_node_get_string((PurpleBlistNode*)b, "servernick"); |
5051 char *alias; | 5051 char *alias; |
5052 const char *balias; | |
5052 if (servernick) | 5053 if (servernick) |
5053 serv_got_alias(gc, bname, servernick); | 5054 serv_got_alias(gc, bname, servernick); |
5054 | 5055 |
5055 /* Store local alias on server */ | 5056 /* Store local alias on server */ |
5056 alias = aim_ssi_getalias(od->ssi.local, gname, bname); | 5057 alias = aim_ssi_getalias(od->ssi.local, gname, bname); |
5057 if (!alias && b->alias && strlen(b->alias)) | 5058 balias = purple_buddy_get_local_buddy_alias(b); |
5058 aim_ssi_aliasbuddy(od, gname, bname, b->alias); | 5059 if (!alias && balias && *balias) |
5060 aim_ssi_aliasbuddy(od, gname, bname, balias); | |
5059 g_free(alias); | 5061 g_free(alias); |
5060 } else { | 5062 } else { |
5061 purple_debug_info("oscar", | 5063 purple_debug_info("oscar", |
5062 "ssi: removing buddy %s from local list\n", bname); | 5064 "ssi: removing buddy %s from local list\n", bname); |
5063 /* We can't actually remove now because it will screw up our looping */ | 5065 /* We can't actually remove now because it will screw up our looping */ |