summaryrefslogtreecommitdiff
path: root/src/irc/irc-send.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-11-23 15:44:01 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-11-23 15:44:01 +0000
commitea3d7c278d6fb7b37554f86e733ee336733fc6ea (patch)
tree77eebabb18ccde32a63bbae58035de8e6e63862f /src/irc/irc-send.c
parent6cfb01f36384382b03062738374981ac34d6e666 (diff)
downloadweechat-ea3d7c278d6fb7b37554f86e733ee336733fc6ea.zip
Fixed bug with use of nick1 with a new server ("weechat_user" was used instead of nick1)
Diffstat (limited to 'src/irc/irc-send.c')
-rw-r--r--src/irc/irc-send.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/irc-send.c b/src/irc/irc-send.c
index bd03d9126..aaf319e78 100644
--- a/src/irc/irc-send.c
+++ b/src/irc/irc-send.c
@@ -61,6 +61,8 @@ irc_login (t_irc_server *server)
gui_printf (server->buffer,
_("%s: using local hostname \"%s\"\n"),
PACKAGE_NAME, hostname);
+ if (!server->nick)
+ server->nick = strdup (server->nick1);
server_sendf (server,
"NICK %s\r\n"
"USER %s %s %s :%s\r\n",