diff options
-rw-r--r-- | src/commands/cmd_lusers.cpp | 22 |
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) |