From 1d3d2a5434fedb40c5eff621f67c10ff75493de5 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Tue, 12 Feb 2013 21:07:25 +0100 Subject: cmd_lusers Convert to a module --- src/commands/cmd_lusers.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/commands/cmd_lusers.cpp') 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&, 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) -- cgit v1.2.3