diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-24 03:29:58 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-24 03:29:58 +0000 |
commit | b868bb52c55fc902e0acab3c4a43576826817e85 (patch) | |
tree | ee67ec4b764846b9f43b064c9c4667ca70192e57 /src/modules/m_messageflood.cpp | |
parent | b16e16ac1bae4ac5494778b4b8a7009febb58137 (diff) |
Get rid of ModePair
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11963 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r-- | src/modules/m_messageflood.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index c39bc9807..5fceee19c 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -78,15 +78,6 @@ class MsgFlood : public ModeHandler MsgFlood(Module* Creator) : ModeHandler(Creator, "flood", 'f', PARAM_SETONLY, MODETYPE_CHANNEL), ext("messageflood", Creator) { } - ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string ¶meter) - { - floodsettings* x = ext.get(channel); - if (x) - return std::make_pair(true, (x->ban ? "*" : "")+ConvToStr(x->lines)+":"+ConvToStr(x->secs)); - else - return std::make_pair(false, parameter); - } - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) { floodsettings *f = ext.get(channel); |