diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-04 20:35:04 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-04 20:35:04 +0000 |
commit | 8b20a049b4e5cc90069a68d7c9b0ca5777db2aaf (patch) | |
tree | 251bd3d7142d0f75e9f69002729c65a126bf626e /src | |
parent | d4140b3c2673dbeca01f87df5d46d89c9bc532c7 (diff) |
One compiles, oh my!
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1547 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/bs_act.c | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c index c41704bf3..ef01b190b 100644 --- a/src/core/bs_act.c +++ b/src/core/bs_act.c @@ -18,34 +18,28 @@ int do_act(User * u); void myBotServHelp(User * u); -/** - * Create the 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 BSAct : public Module { - Command *c; + public: + BSAct(const std::string &creator) : Module(creator) + { + Command *c; - moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); - moduleSetType(CORE); - c = createCommand("ACT", do_act, NULL, BOT_HELP_ACT, -1, -1, -1, -1); - moduleAddCommand(BOTSERV, c, MOD_UNIQUE); + moduleAddAuthor("Anope"); + moduleAddVersion("$Id$"); + moduleSetType(CORE); + c = createCommand("ACT", do_act, NULL, BOT_HELP_ACT, -1, -1, -1, -1); + moduleAddCommand(BOTSERV, c, MOD_UNIQUE); - moduleSetBotHelp(myBotServHelp); + moduleSetBotHelp(myBotServHelp); + } - return MOD_CONT; -} + ~BSAct() + { -/** - * Unload the module - **/ -void AnopeFini(void) -{ + } +}; -} /** * Add the help response to Anopes /bs help output. @@ -91,4 +85,4 @@ int do_act(User * u) return MOD_CONT; } -MODULE_INIT("bs_act") +MODULE_INIT(BSAct) |