summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-02-12 21:07:25 +0100
committerattilamolnar <attilamolnar@hush.com>2013-03-03 23:08:33 +0100
commit1d3d2a5434fedb40c5eff621f67c10ff75493de5 (patch)
tree4880b84c4edec37a2ae61d885e5f5de445625f41 /src/commands
parentbe5b0e2b3915dff52b1d1735fded824a6ba26495 (diff)
cmd_lusers Convert to a module
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_lusers.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/commands/cmd_lusers.cpp b/src/commands/cmd_lusers.cpp
index e9e36b3d1..3dea2c25f 100644
--- a/src/commands/cmd_lusers.cpp
+++ b/src/commands/cmd_lusers.cpp
@@ -86,5 +86,25 @@ CmdResult CommandLusers::Handle (const std::vector<std::string>&, User *user)
return CMD_SUCCESS;
}
+class ModuleLusers : public Module
+{
+ CommandLusers cmd;
+
+ public:
+ ModuleLusers()
+ : cmd(this)
+ {
+ }
+
+ void init()
+ {
+ ServerInstance->Modules->AddService(cmd);
+ }
+
+ Version GetVersion()
+ {
+ return Version("LUSERS", VF_VENDOR | VF_CORE);
+ }
+};
-COMMAND_INIT(CommandLusers)
+MODULE_INIT(ModuleLusers)