diff options
Diffstat (limited to 'src/modules/m_joinflood.cpp')
-rw-r--r-- | src/modules/m_joinflood.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index ae173bdb3..7e4a05d2b 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -144,8 +144,7 @@ class JoinFlood : public ModeHandler parameter = ConvToStr(njoins) + ":" +ConvToStr(nsecs); joinfloodsettings *f = new joinfloodsettings(ServerInstance, nsecs, njoins); channel->Extend("joinflood", f); - channel->SetMode('j', true); - channel->SetModeParam('j', parameter.c_str(), true); + channel->SetMode('j', parameter); return MODEACTION_ALLOW; } else @@ -168,8 +167,7 @@ class JoinFlood : public ModeHandler f = new joinfloodsettings(ServerInstance, nsecs, njoins); channel->Shrink("joinflood"); channel->Extend("joinflood", f); - channel->SetModeParam('j', cur_param.c_str(), false); - channel->SetModeParam('j', parameter.c_str(), true); + channel->SetMode('j', parameter); return MODEACTION_ALLOW; } else @@ -194,7 +192,7 @@ class JoinFlood : public ModeHandler channel->GetExt("joinflood", f); delete f; channel->Shrink("joinflood"); - channel->SetMode('j', false); + channel->SetMode('j', ""); return MODEACTION_ALLOW; } } |