diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-03-26 15:12:05 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-03-26 15:12:05 +0200 |
commit | 272046d0128577032afb1c50fc93cf78c90cab8b (patch) | |
tree | 862938fc845a419be64b77b87e1bd2de03362ced /src/plugins | |
parent | 0a08581f1b4f42022248e2f94dae04c3cd918d5c (diff) | |
download | weechat-272046d0128577032afb1c50fc93cf78c90cab8b.zip |
irc: force the clear of nicklist when joining a channel (nicklist was not sync after znc reconnection) (bug #36008)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 99d5871fb..f572b5b78 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -557,6 +557,14 @@ IRC_PROTOCOL_CALLBACK(join) } } + /* + * local join? clear nicklist to be sure it is empty (when using znc, after + * reconnection to network, we receive a JOIN for channel with existing + * nicks in irc plugin, so we need to clear the nicklist now) + */ + if (local_join) + irc_nick_free_all (server, ptr_channel); + /* reset some variables if joining new channel */ if (!ptr_channel->nicks) { |