diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-19 17:36:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-19 17:36:26 +0000 |
commit | 206e3b49c7bfe3e8a7ca972103fe9e30feb3a86a (patch) | |
tree | c4d7878e6b460f81cda67fa1fb8d9839b0081676 /src/modules/m_messageflood.cpp | |
parent | badadc427a99e5483402c21bf5b7ae64722930e9 (diff) |
SPACE INDENTING ACTION RANGERS -- ATTACK!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7048 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r-- | src/modules/m_messageflood.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index ae458a0d6..f36dacebd 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -82,14 +82,14 @@ class MsgFlood : public ModeHandler public: MsgFlood(InspIRCd* Instance) : ModeHandler(Instance, 'f', 1, 0, false, MODETYPE_CHANNEL, false) { } - ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter) - { + ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter) + { floodsettings* x; - if (channel->GetExt("flood",x)) + if (channel->GetExt("flood",x)) return std::make_pair(true, (x->ban ? "*" : "")+ConvToStr(x->lines)+":"+ConvToStr(x->secs)); - else - return std::make_pair(false, parameter); - } + else + return std::make_pair(false, parameter); + } bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel) { |