summaryrefslogtreecommitdiff
path: root/src/core/ms_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ms_send.c')
-rw-r--r--src/core/ms_send.c42
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)