diff 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
line wrap: on
line diff
--- a/src/server.c	Tue Jul 08 02:08:55 2003 +0000
+++ b/src/server.c	Tue Jul 08 02:33:17 2003 +0000
@@ -453,18 +453,11 @@
 
 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias) {
 	struct buddy *b = gaim_find_buddy(gc->account, who);
+
 	if(!b)
 		return;
 
-	if (b->server_alias)
-		g_free(b->server_alias);
-
-	if (alias && g_utf8_validate(alias, -1, NULL))
-		b->server_alias = g_strdup(alias);
-	else
-		b->server_alias = NULL;
-
-	gaim_blist_update_buddy_status(b, b->uc);
+	gaim_blist_server_alias_buddy(b, alias);
 }
 
 /*