aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_servprotect.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_servprotect.cpp
parentConvert various enums to strongly typed scoped enums. (diff)
downloadinspircd++-8389fbba6d92dec84745e5b8db4739f97561585e.tar.gz
inspircd++-8389fbba6d92dec84745e5b8db4739f97561585e.tar.bz2
inspircd++-8389fbba6d92dec84745e5b8db4739f97561585e.zip
Replace ModeAction with bool.
This enum is functionally the same as bool but with weird semantics.
Diffstat (limited to 'src/modules/m_servprotect.cpp')
-rw-r--r--src/modules/m_servprotect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp
index 05e9de178..c9f25c45b 100644
--- a/src/modules/m_servprotect.cpp
+++ b/src/modules/m_servprotect.cpp
@@ -40,9 +40,9 @@ 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
{
- /* Because this returns MODEACTION_DENY all the time, there is only ONE
+ /* Because this returns false all the time, there is only ONE
* way to add this mode and that is at client introduction in the UID command,
* as this calls OnModeChange for each mode but disregards the return values.
* The mode cannot be manually added or removed, not even by a server or by a remote
@@ -50,7 +50,7 @@ public:
* I'm sure if someone really wants to do that they can make a copy of this module
* that does the job. It won't be me though!
*/
- return MODEACTION_DENY;
+ return false;
}
};