1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

irc: remove autorejoin on channels when disconnected from server (bug #32207)

This commit is contained in:
Sebastien Helleu
2011-11-18 16:00:12 +01:00
parent 6f0b6295c5
commit 7a0d346933
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -814,7 +814,7 @@ irc_channel_free (struct t_irc_server *server, struct t_irc_channel *channel)
if (channel->pv_remote_nick_color)
free (channel->pv_remote_nick_color);
if (channel->hook_autorejoin)
weechat_unhook(channel->hook_autorejoin);
weechat_unhook (channel->hook_autorejoin);
if (channel->nicks_speaking[0])
weechat_list_free (channel->nicks_speaking[0]);
if (channel->nicks_speaking[1])
+5
View File
@@ -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"),
"",