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

View File

@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.7-dev, 2011-11-17
v0.3.7-dev, 2011-11-18
Version 0.3.7 (under dev!)
@ -31,6 +31,7 @@ Version 0.3.7 (under dev!)
* core: enable background process under Cygwin to connect to servers, fix
reconnection problem (bug #34626)
* api: add new functions strcasecmp_range and strncasecmp_range
* irc: remove autorejoin on channels when disconnected from server (bug #32207)
* irc: display messages kick/kill/mode/topic even if nick is ignored
(bug #34853)
* irc: add case insensitive string comparison based on casemapping of server

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])

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"),
"",