diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/irc-send.c | 2 | ||||
-rw-r--r-- | src/irc/irc-server.c | 1 |
2 files changed, 2 insertions, 1 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", diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c index ea2f2d777..d877bd15f 100644 --- a/src/irc/irc-server.c +++ b/src/irc/irc-server.c @@ -400,7 +400,6 @@ server_new (char *name, int autoconnect, int autoreconnect, int autoreconnect_de new_server->autojoin = (autojoin) ? strdup (autojoin) : NULL; new_server->autorejoin = autorejoin; - new_server->nick = strdup (new_server->nick1); new_server->notify_levels = (notify_levels) ? strdup (notify_levels) : NULL; } |