diff options
Diffstat (limited to 'src/irc/irc-send.c')
-rw-r--r-- | src/irc/irc-send.c | 2 |
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", |