diff options
Diffstat (limited to 'src/core/he_help.c')
-rw-r--r-- | src/core/he_help.c | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/src/core/he_help.c b/src/core/he_help.c index 0739e92b2..573e120f1 100644 --- a/src/core/he_help.c +++ b/src/core/he_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 HEHelp : public Module { - Command *c; - - moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); - moduleSetType(CORE); - - c = createCommand("HELP", do_help, NULL, -1, -1, -1, -1, -1); - moduleAddCommand(HELPSERV, c, MOD_UNIQUE); + public: + HEHelp(const std::string &creator) : Module(creator) + { + Command *c; - 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(HELPSERV, c, MOD_UNIQUE); + } +}; @@ -75,4 +63,4 @@ int do_help(User * u) return MOD_CONT; } -MODULE_INIT("he_help") +MODULE_INIT(HEHelp) |