diff options
Diffstat (limited to 'src/core/hs_help.c')
-rw-r--r-- | src/core/hs_help.c | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/src/core/hs_help.c b/src/core/hs_help.c index 008d62082..041678ea6 100644 --- a/src/core/hs_help.c +++ b/src/core/hs_help.c @@ -17,33 +17,21 @@ int do_help(User * u); -/** - * Create the help command, and tell anope about it. - * @param argc Argument count - * @param argv Argument list - * @return MOD_CONT to allow the module, MOD_STOP to stop it - **/ -int AnopeInit(int argc, char **argv) +class HSHelp : public Module { - Command *c; - - moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); - moduleSetType(CORE); + public: + HSHelp(const std::string &creator) : Module(creator) + { + Command *c; - c = createCommand("HELP", do_help, NULL, -1, -1, -1, -1, -1); - moduleAddCommand(HOSTSERV, c, MOD_UNIQUE); - - return MOD_CONT; -} + moduleAddAuthor("Anope"); + moduleAddVersion("$Id$"); + moduleSetType(CORE); -/** - * Unload the module - **/ -void AnopeFini(void) -{ - -} + c = createCommand("HELP", do_help, NULL, -1, -1, -1, -1, -1); + moduleAddCommand(HOSTSERV, c, MOD_UNIQUE); + } +}; @@ -65,4 +53,4 @@ int do_help(User * u) return MOD_CONT; } -MODULE_INIT("hs_help") +MODULE_INIT(HSHelp) |