diff src/server.c @ 5598:8b24e4d1e082

[gaim-migrate @ 6002] (10:36:12) Robot101: fixes three things: (10:36:33) Robot101: linkifies text that's inserted by the history plugin, if you have that option enabled for conversations in general (10:37:02) Robot101: validates the UTF-8 in incoming server-side aliases, so trillian can't screw us over (10:37:38) Robot101: changes the wording in the iconaway plugin so it no longer claims to minimise the away window, which for the moment is a dialog and isn't meant to be minimised committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 31 May 2003 14:38:03 +0000
parents 57165429ed73
children 67900446fab9
line wrap: on
line diff
--- a/src/server.c	Sat May 31 14:29:44 2003 +0000
+++ b/src/server.c	Sat May 31 14:38:03 2003 +0000
@@ -469,10 +469,10 @@
 	if (b->server_alias)
 		g_free(b->server_alias);
 
-	if(alias)
+	if (alias && g_utf8_validate(alias))
 		b->server_alias = g_strdup(alias);
 	else
-	       b->server_alias = NULL;
+		b->server_alias = NULL;
 
 	gaim_blist_update_buddy_status(b, b->uc);
 }