1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

irc: do not rejoin channels where /part has been issued before reconnection to server (bug #33029)

This commit is contained in:
Sebastien Helleu
2011-04-11 16:39:39 +02:00
parent 85c5653713
commit 2c2ebea3fd
6 changed files with 17 additions and 2 deletions
+7 -1
View File
@@ -461,7 +461,11 @@ IRC_PROTOCOL_CALLBACK(join)
pos_channel = (argv[2][0] == ':') ? argv[2] + 1 : argv[2];
ptr_channel = irc_channel_search (server, pos_channel);
if (!ptr_channel)
if (ptr_channel)
{
ptr_channel->part = 0;
}
else
{
/*
* if someone else joins and channel is not opened, then just
@@ -1272,6 +1276,8 @@ IRC_PROTOCOL_CALLBACK(part)
{
if (weechat_config_boolean (irc_config_look_part_closes_buffer))
weechat_buffer_close (ptr_channel->buffer);
else
ptr_channel->part = 1;
}
}
else