summaryrefslogtreecommitdiff
path: root/src/core/ms_help.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-04 22:40:47 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-04 22:40:47 +0000
commit032e327fcf1a44440ddc767c6df0036b6b5d6a89 (patch)
tree44118ed6fa3127cc084ec73e0f761355615bc274 /src/core/ms_help.c
parente1344b1cab8f4df0843b24c61cf8af65b1107079 (diff)
Convert MemoServ.. *weep*
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1555 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ms_help.c')
-rw-r--r--src/core/ms_help.c37
1 files changed, 13 insertions, 24 deletions
diff --git a/src/core/ms_help.c b/src/core/ms_help.c
index 470b74e60..852ea08c5 100644
--- a/src/core/ms_help.c
+++ b/src/core/ms_help.c
@@ -17,32 +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 MSHelp : public Module
{
- Command *c;
-
- moduleAddAuthor("Anope");
- moduleAddVersion("$Id$");
- moduleSetType(CORE);
- c = createCommand("HELP", do_help, NULL, -1, -1, -1, -1, -1);
- moduleAddCommand(MEMOSERV, c, MOD_UNIQUE);
-
- return MOD_CONT;
-}
+ public:
+ MSHelp(const std::string &creator) : Module(creator)
+ {
+ Command *c;
-/**
- * Unload the module
- **/
-void AnopeFini(void)
-{
+ moduleAddAuthor("Anope");
+ moduleAddVersion("$Id$");
+ moduleSetType(CORE);
+ c = createCommand("HELP", do_help, NULL, -1, -1, -1, -1, -1);
+ moduleAddCommand(MEMOSERV, c, MOD_UNIQUE);
+ }
+};
-}
@@ -65,4 +54,4 @@ int do_help(User * u)
return MOD_CONT;
}
-MODULE_INIT("ms_help")
+MODULE_INIT(MSHelp)