comparison plugins/tcl/tcl_cmds.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 beb7be215db3
children a66cf83552dc
comparison
equal deleted inserted replaced
9619:da88e2cd5c53 9620:c001be3c330e
273 if ((node = tcl_list_to_buddy(interp, count, elems)) == NULL) 273 if ((node = tcl_list_to_buddy(interp, count, elems)) == NULL)
274 return TCL_ERROR; 274 return TCL_ERROR;
275 if (node->type == GAIM_BLIST_CHAT_NODE) 275 if (node->type == GAIM_BLIST_CHAT_NODE)
276 Tcl_SetStringObj(result, ((GaimChat *)node)->alias, -1); 276 Tcl_SetStringObj(result, ((GaimChat *)node)->alias, -1);
277 else if (node->type == GAIM_BLIST_BUDDY_NODE) 277 else if (node->type == GAIM_BLIST_BUDDY_NODE)
278 Tcl_SetStringObj(result, (char *)gaim_get_buddy_alias((GaimBuddy *)node), -1); 278 Tcl_SetStringObj(result, (char *)gaim_buddy_get_alias((GaimBuddy *)node), -1);
279 return TCL_OK; 279 return TCL_OK;
280 break; 280 break;
281 case CMD_BUDDY_HANDLE: 281 case CMD_BUDDY_HANDLE:
282 if (objc != 2) { 282 if (objc != 2) {
283 Tcl_WrongNumArgs(interp, 2, objv, ""); 283 Tcl_WrongNumArgs(interp, 2, objv, "");