diff options
| author | 2023-01-22 22:01:25 +0000 | |
|---|---|---|
| committer | 2023-01-22 22:52:30 +0000 | |
| commit | 8389fbba6d92dec84745e5b8db4739f97561585e (patch) | |
| tree | a1ef829a156d002639035acec8bab8a4e8d1bdfd /src/modules/m_delaymsg.cpp | |
| parent | Convert various enums to strongly typed scoped enums. (diff) | |
Replace ModeAction with bool.
This enum is functionally the same as bool but with weird semantics.
Diffstat (limited to 'src/modules/m_delaymsg.cpp')
| -rw-r--r-- | src/modules/m_delaymsg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<intptr_t>(their_param) < ConvToNum<intptr_t>(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<intptr_t>(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) |
