diff options
Diffstat (limited to 'src/core/ms_read.c')
-rw-r--r-- | src/core/ms_read.c | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/src/core/ms_read.c b/src/core/ms_read.c index 7b107b69e..10e456e69 100644 --- a/src/core/ms_read.c +++ b/src/core/ms_read.c @@ -22,34 +22,21 @@ void myMemoServHelp(User * u); extern void rsend_notify(User * u, Memo * m, const char *chan); -/** - * 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 MSRead : public Module { - Command *c; - - moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); - moduleSetType(CORE); - c = createCommand("READ", do_read, NULL, MEMO_HELP_READ, -1, -1, -1, - -1); - moduleAddCommand(MEMOSERV, c, MOD_UNIQUE); - moduleSetMemoHelp(myMemoServHelp); - - return MOD_CONT; -} + public: + MSRead(const std::string &creator) : Module(creator) + { + Command *c; -/** - * Unload the module - **/ -void AnopeFini(void) -{ - -} + moduleAddAuthor("Anope"); + moduleAddVersion("$Id$"); + moduleSetType(CORE); + c = createCommand("READ", do_read, NULL, MEMO_HELP_READ, -1, -1, -1, -1); + moduleAddCommand(MEMOSERV, c, MOD_UNIQUE); + moduleSetMemoHelp(myMemoServHelp); + } +}; @@ -202,4 +189,4 @@ int read_memo(User * u, int index, MemoInfo * mi, const char *chan) return 1; } -MODULE_INIT("ms_read") +MODULE_INIT(MSRead) |