aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-01 12:48:28 +0100
committerGravatar Sadie Powell2023-07-01 12:48:28 +0100
commitefff3085852cda0237f2e689412b724b84d7cfd2 (patch)
tree48682fef661b44b269c841cbbfc9b131a635a513 /src/modules
parentMerge branch 'insp3' into master. (diff)
Reorder the types in the services module.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_services.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp
index d5b0e84c7..9b429711c 100644
--- a/src/modules/m_services.cpp
+++ b/src/modules/m_services.cpp
@@ -49,23 +49,6 @@ public:
}
};
-class ServProtect final
- : public SimpleUserMode
-{
-public:
- ServProtect(Module* Creator)
- : SimpleUserMode(Creator, "servprotect", 'k', true)
- {
- }
-
- bool OnModeChange(User* source, User* dest, Channel* channel, Modes::Change& change) override
- {
- // As this mode is only intended for use by pseudoclients the only way
- // to set it is by introducing a user with it.
- return false;
- }
-};
-
class RegisteredUser final
: public SimpleUserMode
{
@@ -90,6 +73,23 @@ public:
}
};
+class ServProtect final
+ : public SimpleUserMode
+{
+public:
+ ServProtect(Module* Creator)
+ : SimpleUserMode(Creator, "servprotect", 'k', true)
+ {
+ }
+
+ bool OnModeChange(User* source, User* dest, Channel* channel, Modes::Change& change) override
+ {
+ // As this mode is only intended for use by pseudoclients the only way
+ // to set it is by introducing a user with it.
+ return false;
+ }
+};
+
class ModuleServices final
: public Module
{