comparison src/server.c @ 9620:c001be3c330e

[gaim-migrate @ 10464] Changes to those get_alias functions in blist.c from Christopher (siege) O'Brien: Renames gaim_get_buddy_alias to gaim_buddy_get_alias Renames gaim_get_buddy_alias_only to _gaim_buddy_get_alias_only Adds function gaim_buddy_get_contact_alias, which looks up a buddy's appropriate display name by order of: buddy alias; contact alias; server alias; buddy name. Note that the buddy alias is still the top-priority. Changed conversation.c to use _get_contact_alias rather than _get_alias The end result of this is that aliasing the contact will result in conversations with any of that contact's buddies using the contact alias. This allows people like myself to no longer have to alias each buddy to the same alias in order to achieve the same effect. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 31 Jul 2004 21:29:40 +0000
parents 1b13160bf5a4
children 687572cf09a6
comparison
equal deleted inserted replaced
9619:da88e2cd5c53 9620:c001be3c330e
898 */ 898 */
899 if (gc->away) { 899 if (gc->away) {
900 time_t t = time(NULL); 900 time_t t = time(NULL);
901 char *tmpmsg; 901 char *tmpmsg;
902 GaimBuddy *b = gaim_find_buddy(gc->account, name); 902 GaimBuddy *b = gaim_find_buddy(gc->account, name);
903 const char *alias = b ? gaim_get_buddy_alias(b) : name; 903 const char *alias = b ? gaim_buddy_get_alias(b) : name;
904 int row; 904 int row;
905 struct last_auto_response *lar; 905 struct last_auto_response *lar;
906 const gchar *auto_reply_pref; 906 const gchar *auto_reply_pref;
907 907
908 /* 908 /*
1168 /* store things how THEY want it... */ 1168 /* store things how THEY want it... */
1169 if (strcmp(name, b->name)) { 1169 if (strcmp(name, b->name)) {
1170 gaim_blist_rename_buddy(b, name); 1170 gaim_blist_rename_buddy(b, name);
1171 } 1171 }
1172 1172
1173 alias = gaim_escape_html(gaim_get_buddy_alias(b)); 1173 alias = gaim_escape_html(gaim_buddy_get_alias(b));
1174 1174
1175 old_idle = b->idle; 1175 old_idle = b->idle;
1176 1176
1177 if (loggedin) { 1177 if (loggedin) {
1178 if (!GAIM_BUDDY_IS_ONLINE(b)) { 1178 if (!GAIM_BUDDY_IS_ONLINE(b)) {