changeset 23431:7139ce8a6ece

set the purple connection name to the one we are about to try
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 06 Jul 2008 19:56:59 +0000
parents 74960bf43dae
children 1fcdc7d11f38
files libpurple/protocols/irc/msgs.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c	Sun Jul 06 17:24:35 2008 +0000
+++ b/libpurple/protocols/irc/msgs.c	Sun Jul 06 19:56:59 2008 +0000
@@ -1007,6 +1007,9 @@
 	irc->reqnick = newnick;
 	irc->nickused = TRUE;
 
+	purple_connection_set_display_name(
+		purple_account_get_connection(irc->account), newnick);
+
 	buf = irc_format(irc, "vn", "NICK", newnick);
 	irc_send(irc, buf);
 	g_free(buf);