diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 16:40:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 16:40:58 +0000 |
commit | 49ef1162a51906e7444bb7e38736bd816c317db6 (patch) | |
tree | 4092360d44d2c8d88b243b4d37bc873fd964dde2 /src/modules/m_messageflood.cpp | |
parent | a339562253004e861633c67e011d3101ec4588ba (diff) |
Alter SetModeParam to take const char* to save on casts, notice a load of modules that arent setting the param or the mode inside the handler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4231 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r-- | src/modules/m_messageflood.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 2cbecfdac..bcec8248b 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -135,6 +135,8 @@ class MsgFlood : public ModeHandler { floodsettings *f = new floodsettings(ban,nsecs,nlines); channel->Extend("flood",(char*)f); + channel->SetMode('f', true); + channel->SetModeParam('f', parameter.c_str(), true); return MODEACTION_ALLOW; } } @@ -153,6 +155,7 @@ class MsgFlood : public ModeHandler floodsettings *f = (floodsettings*)channel->GetExt("flood"); DELETE(f); channel->Shrink("flood"); + channel->SetMode('f', false); return MODEACTION_ALLOW; } } |