From efff3085852cda0237f2e689412b724b84d7cfd2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 1 Jul 2023 12:48:28 +0100 Subject: Reorder the types in the services module. --- src/modules/m_services.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/modules') 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 { -- cgit v1.3.1-10-gc9f91