diff options
Diffstat (limited to 'src/modules/m_joinflood.cpp')
-rw-r--r-- | src/modules/m_joinflood.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index 6cc54db68..43b45be69 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -136,6 +136,8 @@ class JoinFlood : public ModeHandler { joinfloodsettings *f = new joinfloodsettings(nsecs,njoins); channel->Extend("joinflood",(char*)f); + channel->SetMode('j', true); + channel->SetModeParam('j', parameter.c_str(), true); return MODEACTION_ALLOW; } } @@ -153,6 +155,7 @@ class JoinFlood : public ModeHandler joinfloodsettings *f = (joinfloodsettings*)channel->GetExt("joinflood"); DELETE(f); channel->Shrink("joinflood"); + channel->SetMode('j', false); return MODEACTION_ALLOW; } } |