summaryrefslogtreecommitdiff
path: root/src/core/ns_release.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ns_release.c')
-rw-r--r--src/core/ns_release.c39
1 files changed, 14 insertions, 25 deletions
diff --git a/src/core/ns_release.c b/src/core/ns_release.c
index 5bb200907..4d64f9d8f 100644
--- a/src/core/ns_release.c
+++ b/src/core/ns_release.c
@@ -21,34 +21,23 @@ int do_release(User * u);
void myNickServHelp(User * u);
int myHelpResonse(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 NSRelease : public Module
{
- moduleAddAuthor("Anope");
- moduleAddVersion("$Id$");
- moduleSetType(CORE);
-
- c = createCommand("RELEASE", do_release, NULL, -1, -1, -1, -1, -1);
- moduleAddCommand(NICKSERV, c, MOD_UNIQUE);
- moduleAddHelp(c, myHelpResonse);
+ public:
+ NSRelease(const std::string &creator) : Module(creator)
+ {
+ moduleAddAuthor("Anope");
+ moduleAddVersion("$Id$");
+ moduleSetType(CORE);
- moduleSetNickHelp(myNickServHelp);
-
- return MOD_CONT;
-}
+ c = createCommand("RELEASE", do_release, NULL, -1, -1, -1, -1, -1);
+ moduleAddCommand(NICKSERV, c, MOD_UNIQUE);
+ moduleAddHelp(c, myHelpResonse);
-/**
- * Unload the module
- **/
-void AnopeFini(void)
-{
+ moduleSetNickHelp(myNickServHelp);
+ }
+};
-}
@@ -126,4 +115,4 @@ int do_release(User * u)
/* EOF */
-MODULE_INIT("ns_release")
+MODULE_INIT(NSRelease)