diff options
author | Peter Powell <petpow@saberuk.com> | 2018-09-23 14:19:06 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-09-23 14:19:06 +0100 |
commit | cae87fa047bafedc665d07929b47eaa707ff5f42 (patch) | |
tree | c03f926496ac49d01efff18b662ca5ccac6645c2 /src/coremods | |
parent | 876b1ae4e280e99f24d37da4b819f108ddb3f1e3 (diff) |
Switch all core modules still using COMMAND_INIT to MODULE_INIT.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_ison.cpp | 18 | ||||
-rw-r--r-- | src/coremods/core_reloadmodule.cpp | 19 | ||||
-rw-r--r-- | src/coremods/core_stats.cpp | 19 | ||||
-rw-r--r-- | src/coremods/core_userhost.cpp | 19 | ||||
-rw-r--r-- | src/coremods/core_wallops.cpp | 19 |
5 files changed, 89 insertions, 5 deletions
diff --git a/src/coremods/core_ison.cpp b/src/coremods/core_ison.cpp index 0c98dfe56..3f6b1ac74 100644 --- a/src/coremods/core_ison.cpp +++ b/src/coremods/core_ison.cpp @@ -77,5 +77,21 @@ CmdResult CommandIson::HandleLocal(LocalUser* user, const Params& parameters) return CMD_SUCCESS; } +class CoreModIson : public Module +{ + private: + CommandIson cmd; + + public: + CoreModIson() + : cmd(this) + { + } + + Version GetVersion() CXX11_OVERRIDE + { + return Version("Provides the ISON command", VF_CORE | VF_VENDOR); + } +}; -COMMAND_INIT(CommandIson) +MODULE_INIT(CoreModIson) diff --git a/src/coremods/core_reloadmodule.cpp b/src/coremods/core_reloadmodule.cpp index 383d574bf..ea5d40abd 100644 --- a/src/coremods/core_reloadmodule.cpp +++ b/src/coremods/core_reloadmodule.cpp @@ -765,4 +765,21 @@ CmdResult CommandReloadmodule::Handle(User* user, const Params& parameters) } } -COMMAND_INIT(CommandReloadmodule) +class CoreModReloadmodule : public Module +{ + private: + CommandReloadmodule cmd; + + public: + CoreModReloadmodule() + : cmd(this) + { + } + + Version GetVersion() CXX11_OVERRIDE + { + return Version("Provides the RELOADMODULE command", VF_CORE | VF_VENDOR); + } +}; + +MODULE_INIT(CoreModReloadmodule) diff --git a/src/coremods/core_stats.cpp b/src/coremods/core_stats.cpp index bb20dd761..06602b288 100644 --- a/src/coremods/core_stats.cpp +++ b/src/coremods/core_stats.cpp @@ -397,4 +397,21 @@ CmdResult CommandStats::Handle(User* user, const Params& parameters) return CMD_SUCCESS; } -COMMAND_INIT(CommandStats) +class CoreModStats : public Module +{ + private: + CommandStats cmd; + + public: + CoreModStats() + : cmd(this) + { + } + + Version GetVersion() CXX11_OVERRIDE + { + return Version("Provides the STATS command", VF_CORE | VF_VENDOR); + } +}; + +MODULE_INIT(CoreModStats) diff --git a/src/coremods/core_userhost.cpp b/src/coremods/core_userhost.cpp index 294f714b4..542c1831d 100644 --- a/src/coremods/core_userhost.cpp +++ b/src/coremods/core_userhost.cpp @@ -82,4 +82,21 @@ CmdResult CommandUserhost::Handle(User* user, const Params& parameters) return CMD_SUCCESS; } -COMMAND_INIT(CommandUserhost) +class CoreModUserhost : public Module +{ + private: + CommandUserhost cmd; + + public: + CoreModUserhost() + : cmd(this) + { + } + + Version GetVersion() CXX11_OVERRIDE + { + return Version("Provides the USERHOST command", VF_CORE | VF_VENDOR); + } +}; + +MODULE_INIT(CoreModUserhost) diff --git a/src/coremods/core_wallops.cpp b/src/coremods/core_wallops.cpp index 26a00a47d..6b055f874 100644 --- a/src/coremods/core_wallops.cpp +++ b/src/coremods/core_wallops.cpp @@ -69,4 +69,21 @@ CmdResult CommandWallops::Handle(User* user, const Params& parameters) return CMD_SUCCESS; } -COMMAND_INIT(CommandWallops) +class CoreModWallops : public Module +{ + private: + CommandWallops cmd; + + public: + CoreModWallops() + : cmd(this) + { + } + + Version GetVersion() CXX11_OVERRIDE + { + return Version("Provides the WALLOPS command", VF_CORE | VF_VENDOR); + } +}; + +MODULE_INIT(CoreModWallops) |