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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -55,7 +55,7 @@ class CSTBan : public Module
|
||||
|
||||
moduleAddAuthor(AUTHOR);
|
||||
moduleAddVersion(VERSION);
|
||||
moduleSetType(SUPPORTED);
|
||||
moduleSetType(this, SUPPORTED);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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?");
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user