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

irc: fix switch to channel manually joined (issue #1982)

This happens when server option autojoin_dynamic is on and option
irc.look.buffer_switch_autojoin is off.

Regression was introduced in version 4.0.0 by commit
1c3b871204.
This commit is contained in:
Sébastien Helleu
2023-07-31 08:03:50 +02:00
parent 9312211d49
commit b2cd9d002b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ Bug fixes::
* core: fix input length and crash after delete of line (issue #1989)
* irc: fix display of self CTCP message containing bold attribute (issue #1981)
* irc: fix memory leak in IRC message parser
* irc: fix switch to channel manually joined when server option autojoin_dynamic is on and option irc.look.buffer_switch_autojoin is off (issue #1982)
[[v4.0.2]]
== Version 4.0.2 (2023-07-12)
+1 -1
View File
@@ -462,7 +462,7 @@ irc_channel_create_buffer (struct t_irc_server *server,
if (noswitch
|| (!manual_join && !autojoin_join)
|| (manual_join && !weechat_config_boolean (irc_config_look_buffer_switch_join))
|| (autojoin_join && !weechat_config_boolean (irc_config_look_buffer_switch_autojoin)))
|| (!manual_join && autojoin_join && !weechat_config_boolean (irc_config_look_buffer_switch_autojoin)))
{
switch_to_channel = 0;
}