1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 22:43:12 +02:00

Convert moduleSetType() to not require a module pointer.. actually, this is probably the wrong way to go about this (we should use a member func),

but who cares for now.


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1580 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-11-08 00:34:29 +00:00
parent b8c04482bb
commit d18d3f094c
148 changed files with 157 additions and 158 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class BSFantasyUnban : public Module
moduleAddAuthor("Anope");
moduleAddVersion("$Id$");
moduleSetType(CORE);
moduleSetType(this, CORE);
hook = createEventHook(EVENT_BOT_FANTASY, do_fantasy);
moduleAddEventHook(hook);
+1 -1
View File
@@ -62,7 +62,7 @@ class CSAppendTopic : public Module
moduleAddAuthor(AUTHOR);
moduleAddVersion(VERSION);
moduleSetType(SUPPORTED);
moduleSetType(this, SUPPORTED);
c = createCommand("APPENDTOPIC", my_cs_appendtopic, NULL, -1, -1, -1, -1, -1);
moduleAddCommand(CHANSERV, c, MOD_HEAD);
+1 -1
View File
@@ -41,7 +41,7 @@ class CSEnforce : public Module
moduleAddAuthor(AUTHOR);
moduleAddVersion(VERSION);
moduleSetType(SUPPORTED);
moduleSetType(this, SUPPORTED);
c = createCommand("ENFORCE", my_cs_enforce, NULL, -1, -1, -1, -1, -1);
moduleAddCommand(CHANSERV, c, MOD_HEAD);
+1 -1
View File
@@ -55,7 +55,7 @@ class CSTBan : public Module
moduleAddAuthor(AUTHOR);
moduleAddVersion(VERSION);
moduleSetType(SUPPORTED);
moduleSetType(this, SUPPORTED);
}
};
+1 -1
View File
@@ -122,7 +122,7 @@ class HSRequest : public Module
moduleSetHostHelp(hs_help);
moduleAddAuthor(AUTHOR);
moduleAddVersion(VERSION);
moduleSetType(SUPPORTED);
moduleSetType(this, SUPPORTED);
my_load_config();
my_add_languages();
+1 -1
View File
@@ -41,7 +41,7 @@ class NSMaxEmail : public Module
moduleAddAuthor(AUTHOR);
moduleAddVersion(VERSION);
moduleSetType(SUPPORTED);
moduleSetType(this, SUPPORTED);
c = createCommand("REGISTER", my_ns_register, NULL, -1, -1, -1, -1, -1);
moduleAddCommand(NICKSERV, c, MOD_HEAD);
+1 -1
View File
@@ -68,7 +68,7 @@ class NSNOOPConvert : public Module
moduleAddAuthor(AUTHOR);
moduleAddVersion(VERSION);
moduleSetType(SUPPORTED);
moduleSetType(this, SUPPORTED);
if (mLoadConfig(0, NULL))
throw ModuleException("Couldn't load config?");
+1 -1
View File
@@ -86,7 +86,7 @@ class OSIgnoreDB : public Module
moduleAddAuthor(AUTHOR);
moduleAddVersion(VERSION);
moduleSetType(SUPPORTED);
moduleSetType(this, SUPPORTED);
hook = createEventHook(EVENT_RELOAD, reload_config);
if (moduleAddEventHook(hook) != MOD_ERR_OK)
+1 -1
View File
@@ -73,7 +73,7 @@ class OSInfo : public Module
moduleAddAuthor(AUTHOR);
moduleAddVersion(VERSION);
moduleSetType(SUPPORTED);
moduleSetType(this, SUPPORTED);
if (mLoadConfig())
throw ModuleException("Unable to load config");