summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r--src/plugins/irc/irc-protocol.c8
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)
{