diff src/account.c @ 11247:e5aa4398003e

[gaim-migrate @ 13416] Fix the bug where our screen name would not be shown when sending an IM to someone over protocols where you do not have a server-side alias, and you have not set a self-alias for yourself. This was caused by Sean's commit of a patch which brough conversastion.c to revision 1.644. Anyone know the reason for this change? The commit message was "Todd Troxell removed IM aliases from chat rooms. Unfortunate, but necessary" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 13 Aug 2005 02:26:57 +0000
parents 1c5398ccbeb0
children b4b1be482b4e
line wrap: on
line diff
--- a/src/account.c	Sat Aug 13 00:49:50 2005 +0000
+++ b/src/account.c	Sat Aug 13 02:26:57 2005 +0000
@@ -570,7 +570,8 @@
 	child = xmlnode_get_child(node, "alias");
 	if ((child != NULL) && ((data = xmlnode_get_data(child)) != NULL))
 	{
-		gaim_account_set_alias(ret, data);
+		if (*data != '\0')
+			gaim_account_set_alias(ret, data);
 		g_free(data);
 	}