summaryrefslogtreecommitdiff
path: root/src/core/ms_staff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ms_staff.c')
-rw-r--r--src/core/ms_staff.c42
1 files changed, 14 insertions, 28 deletions
diff --git a/src/core/ms_staff.c b/src/core/ms_staff.c
index 4d5b849f9..434755276 100644
--- a/src/core/ms_staff.c
+++ b/src/core/ms_staff.c
@@ -18,35 +18,21 @@
int do_staff(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 MSStaff : public Module
{
- Command *c;
-
- moduleAddAuthor("Anope");
- moduleAddVersion
- ("$Id$");
- moduleSetType(CORE);
- c = createCommand("STAFF", do_staff, is_services_oper, -1, -1,
- MEMO_HELP_STAFF, MEMO_HELP_STAFF, MEMO_HELP_STAFF);
- moduleAddCommand(MEMOSERV, c, MOD_UNIQUE);
- moduleSetMemoHelp(myMemoServHelp);
-
- return MOD_CONT;
-}
+ public:
+ MSStaff(const std::string &creator) : Module(creator)
+ {
+ Command *c;
-/**
- * Unload the module
- **/
-void AnopeFini(void)
-{
-
-}
+ moduleAddAuthor("Anope");
+ moduleAddVersion("$Id$");
+ moduleSetType(CORE);
+ c = createCommand("STAFF", do_staff, is_services_oper, -1, -1, MEMO_HELP_STAFF, MEMO_HELP_STAFF, MEMO_HELP_STAFF);
+ moduleAddCommand(MEMOSERV, c, MOD_UNIQUE);
+ moduleSetMemoHelp(myMemoServHelp);
+ }
+};
@@ -92,4 +78,4 @@ int do_staff(User * u)
return MOD_CONT;
}
-MODULE_INIT("ms_staff")
+MODULE_INIT(MSStaff)