diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-04-02 13:49:25 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-04-02 13:49:25 +0200 |
commit | ff85d00e7f565963c6cb7443ca763254fa6fe9cd (patch) | |
tree | 7f92ea16a9b499330195f21dfa9faeae0860b25f /src/plugins/irc/irc-protocol.c | |
parent | e15bd25f377f87a5f129e950b1d3dc5968cfbc31 (diff) | |
download | weechat-ff85d00e7f565963c6cb7443ca763254fa6fe9cd.zip |
irc: update autojoin option with redirected channels when autojoin_dynamic is enabled (closes #1898)
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 6ce3e7629..235b32bbe 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -48,6 +48,7 @@ #include "irc-config.h" #include "irc-ctcp.h" #include "irc-ignore.h" +#include "irc-join.h" #include "irc-message.h" #include "irc-mode.h" #include "irc-modelist.h" @@ -6789,6 +6790,12 @@ IRC_PROTOCOL_CALLBACK(470) WEECHAT_HOOK_SIGNAL_POINTER, ptr_buffer); } + if (IRC_SERVER_OPTION_BOOLEAN(server, + IRC_SERVER_OPTION_AUTOJOIN_DYNAMIC)) + { + irc_join_rename_channel_in_autojoin (server, params[1], + params[2]); + } } old_channel_lower = weechat_string_tolower (params[1]); |