diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-04 22:28:32 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-04 22:28:32 +0000 |
commit | e1344b1cab8f4df0843b24c61cf8af65b1107079 (patch) | |
tree | ef895bc5d81eededf6f13b4a4843035179b7660b /src/core/hs_set.c | |
parent | 7affa0982a37964ee59aee872afe4e78b0cd55e2 (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/hs_set.c')
-rw-r--r-- | src/core/hs_set.c | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/src/core/hs_set.c b/src/core/hs_set.c index 26a9141dd..67323b6e1 100644 --- a/src/core/hs_set.c +++ b/src/core/hs_set.c @@ -18,36 +18,23 @@ int myDoSet(User * u); void myHostServHelp(User * u); -/** - * Create the off 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 HSSet : public Module { - Command *c; - - moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); - moduleSetType(CORE); + public: + HSSet(const std::string &creator) : Module(creator) + { + Command *c; - c = createCommand("SET", myDoSet, is_host_setter, HOST_HELP_SET, -1, - -1, -1, -1); - moduleAddCommand(HOSTSERV, c, MOD_UNIQUE); + moduleAddAuthor("Anope"); + moduleAddVersion("$Id$"); + moduleSetType(CORE); - moduleSetHostHelp(myHostServHelp); - - return MOD_CONT; -} + c = createCommand("SET", myDoSet, is_host_setter, HOST_HELP_SET, -1, -1, -1, -1); + moduleAddCommand(HOSTSERV, c, MOD_UNIQUE); -/** - * Unload the module - **/ -void AnopeFini(void) -{ - -} + moduleSetHostHelp(myHostServHelp); + } +}; @@ -177,4 +164,4 @@ int myDoSet(User * u) return MOD_CONT; } -MODULE_INIT("hs_set") +MODULE_INIT(HSSet) |