From e1344b1cab8f4df0843b24c61cf8af65b1107079 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 4 Nov 2008 22:28:32 +0000 Subject: Convert HelpServ (useless crap..) and HostServ. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1554 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/hs_del.c | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) (limited to 'src/core/hs_del.c') diff --git a/src/core/hs_del.c b/src/core/hs_del.c index 5c12457b9..f45a93b75 100644 --- a/src/core/hs_del.c +++ b/src/core/hs_del.c @@ -18,36 +18,24 @@ int do_del(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 HSDel : public Module { - Command *c; - - moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); - moduleSetType(CORE); + public: + HSDel(const std::string &creator) : Module(creator) + { + Command *c; - c = createCommand("DEL", do_del, is_host_remover, HOST_HELP_DEL, -1, - -1, -1, -1); - moduleAddCommand(HOSTSERV, c, MOD_UNIQUE); + moduleAddAuthor("Anope"); + moduleAddVersion("$Id$"); + moduleSetType(CORE); - moduleSetHostHelp(myHostServHelp); - - return MOD_CONT; -} + c = createCommand("DEL", do_del, is_host_remover, HOST_HELP_DEL, -1, -1, -1, -1); + moduleAddCommand(HOSTSERV, c, MOD_UNIQUE); -/** - * Unload the module - **/ -void AnopeFini(void) -{ + moduleSetHostHelp(myHostServHelp); + } +}; -} @@ -90,4 +78,4 @@ int do_del(User * u) return MOD_CONT; } -MODULE_INIT("hs_del") +MODULE_INIT(HSDel) -- cgit