aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_hideoper.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-22 22:01:25 +0000
committerGravatar Sadie Powell2023-01-22 22:52:30 +0000
commit8389fbba6d92dec84745e5b8db4739f97561585e (patch)
treea1ef829a156d002639035acec8bab8a4e8d1bdfd /src/modules/m_hideoper.cpp
parentConvert 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_hideoper.cpp')
-rw-r--r--src/modules/m_hideoper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp
index 884e1c2b4..a8bf2947a 100644
--- a/src/modules/m_hideoper.cpp
+++ b/src/modules/m_hideoper.cpp
@@ -44,17 +44,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 (SimpleUserMode::OnModeChange(source, dest, channel, change) == MODEACTION_DENY)
- return MODEACTION_DENY;
+ if (SimpleUserMode::OnModeChange(source, dest, channel, change) == false)
+ return false;
if (change.adding)
opercount++;
else
opercount--;
- return MODEACTION_ALLOW;
+ return true;
}
};