changeset 3575:0a60fd3905b1

[gaim-migrate @ 3674] a second attempt at fixing realnames committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 30 Sep 2002 05:46:14 +0000
parents 2b43124e8475
children 88f80e4566aa
files src/protocols/irc/irc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Mon Sep 30 04:23:24 2002 +0000
+++ b/src/protocols/irc/irc.c	Mon Sep 30 05:46:14 2002 +0000
@@ -1315,7 +1315,7 @@
 	g_snprintf(buf, sizeof(buf), "USER %s %s %s :%s\r\n",
 		   g_get_user_name(), hostname, 
 		   gc->user->proto_opt[USEROPT_SERV], 
-		   gc->user->alias ? gc->user->alias : "gaim");
+		   gc->user->alias && strlen(gc->user->alias) ? gc->user->alias : "gaim");
 	if (irc_write(idata->fd, buf, strlen(buf)) < 0) {
 		hide_login_progress(gc, "Write error");
 		signoff(gc);