summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-server.c
diff options
context:
space:
mode:
authorarza <arza@arza.us>2017-04-23 11:43:48 +0300
committerSébastien Helleu <flashcode@flashtux.org>2023-05-17 21:42:00 +0200
commit99b84a76ad64eed97e8a81ef4043974f67a46c20 (patch)
tree7fdcb72152f65518bd3dd9612f7361215812cbad /src/plugins/irc/irc-server.c
parent6ae04c4947c211a356b9acd22f8225134728d4c6 (diff)
downloadweechat-99b84a76ad64eed97e8a81ef4043974f67a46c20.zip
irc: start from the beginning of nicks at automatic reconnection (closes #337)
Diffstat (limited to 'src/plugins/irc/irc-server.c')
-rw-r--r--src/plugins/irc/irc-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 0166e4a9e..41caaeed8 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -5766,8 +5766,8 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address,
server->reconnect_start = 0;
}
- /* discard current nick if no reconnection asked */
- if (!reconnect && server->nick)
+ /* discard current nick */
+ if (server->nick)
irc_server_set_nick (server, NULL);
irc_server_set_buffer_title (server);