m_joinflood Fix remote joins affecting local joinflood state when the channel is locked

Fixes issue #694 reported by @TurkDesk
This commit is contained in:
Attila Molnar 2014-01-19 17:04:11 +01:00
parent f75a0d5482
commit 0f91b6173b

View File

@ -231,7 +231,7 @@ class ModuleJoinFlood : public Module
joinfloodsettings *f = jf.ext.get(memb->chan);
/* But all others are OK */
if (f)
if ((f) && (!f->islocked()))
{
f->addjoin();
if (f->shouldlock())