summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-server.c')
-rw-r--r--src/plugins/irc/irc-server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index c6811c0f8..8f323bc1a 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -3624,6 +3624,11 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address,
ptr_channel = ptr_channel->next_channel)
{
irc_nick_free_all (server, ptr_channel);
+ if (ptr_channel->hook_autorejoin)
+ {
+ weechat_unhook (ptr_channel->hook_autorejoin);
+ ptr_channel->hook_autorejoin = NULL;
+ }
weechat_printf (ptr_channel->buffer,
_("%s%s: disconnected from server"),
"",