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_permchannels.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_permchannels.cpp')
| -rw-r--r-- | src/modules/m_permchannels.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 4482795e3..c9beae1f1 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -40,17 +40,17 @@ public: { } - ModeAction OnModeChange(User* source, User* dest, Channel* channel, Modes::Change& change) override + bool OnModeChange(User* source, User* dest, Channel* channel, Modes::Change& change) override { if (SimpleChannelMode::OnModeChange(source, dest, channel, change)) { if (!change.adding) channel->CheckDestroy(); - return MODEACTION_ALLOW; + return true; } - return MODEACTION_DENY; + return false; } void SetOperOnly(bool value) |
