aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_nickflood.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nickflood.cpp')
-rw-r--r--src/modules/m_nickflood.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index 37e4a56c0..7bd3fcc14 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -94,13 +94,13 @@ public:
syntax = "<nick-changes>:<seconds>";
}
- ModeAction OnSet(User* source, Channel* channel, std::string& parameter) override
+ bool OnSet(User* source, Channel* channel, std::string& parameter) override
{
std::string::size_type colon = parameter.find(':');
if ((colon == std::string::npos) || (parameter.find('-') != std::string::npos))
{
source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter));
- return MODEACTION_DENY;
+ return false;
}
/* Set up the flood parameters for this channel */
@@ -110,11 +110,11 @@ public:
if ((nnicks<1) || (nsecs<1))
{
source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter));
- return MODEACTION_DENY;
+ return false;
}
ext.SetFwd(channel, nsecs, nnicks);
- return MODEACTION_ALLOW;
+ return true;
}
void SerializeParam(Channel* chan, const nickfloodsettings* nfs, std::string& out)