diff options
Diffstat (limited to 'src/core/bs_help.c')
-rw-r--r-- | src/core/bs_help.c | 40 |
1 files changed, 13 insertions, 27 deletions
diff --git a/src/core/bs_help.c b/src/core/bs_help.c index c2e890ad2..66c5be02d 100644 --- a/src/core/bs_help.c +++ b/src/core/bs_help.c @@ -17,34 +17,20 @@ 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 BSHelp : public Module { - Command *c; - - moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); - moduleSetType(CORE); - c = createCommand("HELP", do_help, NULL, -1, -1, -1, -1, -1); - moduleAddCommand(BOTSERV, c, MOD_UNIQUE); - - - return MOD_CONT; -} - -/** - * Unload the module - **/ -void AnopeFini(void) -{ - -} + public: + BSHelp(const std::string &creator) : Module(creator) + { + Command *c; + moduleAddAuthor("Anope"); + moduleAddVersion("$Id$"); + moduleSetType(CORE); + c = createCommand("HELP", do_help, NULL, -1, -1, -1, -1, -1); + moduleAddCommand(BOTSERV, c, MOD_UNIQUE); + } +}; /** @@ -66,4 +52,4 @@ int do_help(User * u) return MOD_CONT; } -MODULE_INIT("bs_help") +MODULE_INIT(BSHelp) |