From 272046d0128577032afb1c50fc93cf78c90cab8b Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 26 Mar 2012 15:12:05 +0200 Subject: irc: force the clear of nicklist when joining a channel (nicklist was not sync after znc reconnection) (bug #36008) --- src/plugins/irc/irc-protocol.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins') 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) { -- cgit v1.2.3