diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-04 22:40:47 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-04 22:40:47 +0000 |
commit | 032e327fcf1a44440ddc767c6df0036b6b5d6a89 (patch) | |
tree | 44118ed6fa3127cc084ec73e0f761355615bc274 /src/core/ms_send.c | |
parent | e1344b1cab8f4df0843b24c61cf8af65b1107079 (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_send.c')
-rw-r--r-- | src/core/ms_send.c | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/src/core/ms_send.c b/src/core/ms_send.c index 64faec005..306b30ae7 100644 --- a/src/core/ms_send.c +++ b/src/core/ms_send.c @@ -18,35 +18,21 @@ int do_send(User * u); void myMemoServHelp(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 MSSend : public Module { - Command *c; - - moduleAddAuthor("Anope"); - moduleAddVersion - ("$Id$"); - moduleSetType(CORE); - c = createCommand("SEND", do_send, NULL, MEMO_HELP_SEND, -1, -1, -1, - -1); - moduleAddCommand(MEMOSERV, c, MOD_UNIQUE); - moduleSetMemoHelp(myMemoServHelp); - - return MOD_CONT; -} + public: + MSSend(const std::string &creator) : Module(creator) + { + Command *c; -/** - * Unload the module - **/ -void AnopeFini(void) -{ - -} + moduleAddAuthor("Anope"); + moduleAddVersion("$Id$"); + moduleSetType(CORE); + c = createCommand("SEND", do_send, NULL, MEMO_HELP_SEND, -1, -1, -1, -1); + moduleAddCommand(MEMOSERV, c, MOD_UNIQUE); + moduleSetMemoHelp(myMemoServHelp); + } +}; @@ -73,4 +59,4 @@ int do_send(User * u) return MOD_CONT; } -MODULE_INIT("ms_send") +MODULE_INIT(MSSend) |