diff options
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) { |