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_delaymsg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_delaymsg.cpp') diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index fedc45b6f..25d744656 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -44,7 +44,7 @@ public: return ConvToNum(their_param) < ConvToNum(our_param); } - ModeAction OnSet(User* source, Channel* chan, std::string& parameter) override; + bool OnSet(User* source, Channel* chan, std::string& parameter) override; void OnUnset(User* source, Channel* chan) override; void SerializeParam(Channel* chan, intptr_t n, std::string& out) @@ -78,7 +78,7 @@ public: void ReadConfig(ConfigStatus& status) override; }; -ModeAction DelayMsgMode::OnSet(User* source, Channel* chan, std::string& parameter) +bool DelayMsgMode::OnSet(User* source, Channel* chan, std::string& parameter) { // Setting a new limit, sanity check intptr_t limit = ConvToNum(parameter); @@ -86,7 +86,7 @@ ModeAction DelayMsgMode::OnSet(User* source, Channel* chan, std::string& paramet limit = 1; ext.Set(chan, limit); - return MODEACTION_ALLOW; + return true; } void DelayMsgMode::OnUnset(User* source, Channel* chan) -- cgit v1.3.1-10-gc9f91