diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-23 15:44:01 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-23 15:44:01 +0000 |
commit | ea3d7c278d6fb7b37554f86e733ee336733fc6ea (patch) | |
tree | 77eebabb18ccde32a63bbae58035de8e6e63862f /src/irc | |
parent | 6cfb01f36384382b03062738374981ac34d6e666 (diff) | |
download | weechat-ea3d7c278d6fb7b37554f86e733ee336733fc6ea.zip |
Fixed bug with use of nick1 with a new server ("weechat_user" was used instead of nick1)
Diffstat (limited to 'src/irc')
-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; } |