changeset 5150:9a19c0a1e1be

[gaim-migrate @ 5514] fix the bug where being forced to change your nick when you sign on to IRC causes you to not be able to join any chats. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 17 Apr 2003 23:40:37 +0000
parents 387aafe957c4
children ab2ae9dc9370
files src/protocols/irc/irc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Thu Apr 17 05:34:16 2003 +0000
+++ b/src/protocols/irc/irc.c	Thu Apr 17 23:40:37 2003 +0000
@@ -996,6 +996,7 @@
 	char buf[IRC_BUF_LEN];	
 	g_snprintf(buf, sizeof(buf), "NICK %s\r\n", b);
 	irc_write(id->fd, buf, strlen(buf));
+	g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", b);
 }
 
 static void