summaryrefslogtreecommitdiff
path: root/src/coremods/core_userhost.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-09-23 14:19:06 +0100
committerPeter Powell <petpow@saberuk.com>2018-09-23 14:19:06 +0100
commitcae87fa047bafedc665d07929b47eaa707ff5f42 (patch)
treec03f926496ac49d01efff18b662ca5ccac6645c2 /src/coremods/core_userhost.cpp
parent876b1ae4e280e99f24d37da4b819f108ddb3f1e3 (diff)
Switch all core modules still using COMMAND_INIT to MODULE_INIT.
Diffstat (limited to 'src/coremods/core_userhost.cpp')
-rw-r--r--src/coremods/core_userhost.cpp19
1 files changed, 18 insertions, 1 deletions
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)