Mercurial > pidgin.yaz
comparison src/server.c @ 6058:d5f4ae4f9a02
[gaim-migrate @ 6508]
This should fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=196664
I also removed the dialog for rename buddy. The UI doesn't use it anymore.
We think renaming a buddy is silly.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 08 Jul 2003 02:33:17 +0000 |
parents | 272c761c52e3 |
children | d8cd876e613e |
comparison
equal
deleted
inserted
replaced
6057:dc2124210882 | 6058:d5f4ae4f9a02 |
---|---|
451 } | 451 } |
452 } | 452 } |
453 | 453 |
454 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias) { | 454 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias) { |
455 struct buddy *b = gaim_find_buddy(gc->account, who); | 455 struct buddy *b = gaim_find_buddy(gc->account, who); |
456 | |
456 if(!b) | 457 if(!b) |
457 return; | 458 return; |
458 | 459 |
459 if (b->server_alias) | 460 gaim_blist_server_alias_buddy(b, alias); |
460 g_free(b->server_alias); | |
461 | |
462 if (alias && g_utf8_validate(alias, -1, NULL)) | |
463 b->server_alias = g_strdup(alias); | |
464 else | |
465 b->server_alias = NULL; | |
466 | |
467 gaim_blist_update_buddy_status(b, b->uc); | |
468 } | 461 } |
469 | 462 |
470 /* | 463 /* |
471 * Move a buddy from one group to another on server. | 464 * Move a buddy from one group to another on server. |
472 * | 465 * |