summaryrefslogtreecommitdiff
path: root/src/core/he_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:28:32 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-04 22:28:32 +0000
commite1344b1cab8f4df0843b24c61cf8af65b1107079 (patch)
treeef895bc5d81eededf6f13b4a4843035179b7660b /src/core/he_help.c
parent7affa0982a37964ee59aee872afe4e78b0cd55e2 (diff)
Convert HelpServ (useless crap..) and HostServ.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1554 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/he_help.c')
-rw-r--r--src/core/he_help.c38
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)