From 8389fbba6d92dec84745e5b8db4739f97561585e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 22 Jan 2023 22:01:25 +0000 Subject: Replace ModeAction with bool. This enum is functionally the same as bool but with weird semantics. --- src/modules/m_anticaps.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_anticaps.cpp') diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp index 319e85cea..b7a4d4caa 100644 --- a/src/modules/m_anticaps.cpp +++ b/src/modules/m_anticaps.cpp @@ -111,7 +111,7 @@ public: syntax = "{ban|block|mute|kick|kickban}::"; } - ModeAction OnSet(User* source, Channel* channel, std::string& parameter) override + bool OnSet(User* source, Channel* channel, std::string& parameter) override { irc::sepstream stream(parameter, ':'); AntiCapsMethod method; @@ -122,11 +122,11 @@ public: if (!ParseMethod(stream, method) || !ParseMinimumLength(stream, minlen) || !ParsePercent(stream, percent)) { source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter)); - return MODEACTION_DENY; + return false; } ext.SetFwd(channel, method, minlen, percent); - return MODEACTION_ALLOW; + return true; } void SerializeParam(Channel* chan, const AntiCapsSettings* acs, std::string& out) -- cgit v1.3.1-10-gc9f91