diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 00:48:04 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 00:48:04 +0000 |
commit | 7ac7c564f5115af12f771db5b510b757b1dcc322 (patch) | |
tree | 90f9d13331c37f8e5dc5ce642b50be545590274f /src/modules.c | |
parent | 7181dc35ce0f2d2a2bf2d2bd0d36a690c1cc6b95 (diff) |
moduleSetType() -> Module::SetType().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1583 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/modules.c b/src/modules.c index 2b411e4d5..2988b9f52 100644 --- a/src/modules.c +++ b/src/modules.c @@ -235,7 +235,7 @@ int encryption_module_init(void) { if (ret != MOD_ERR_OK) alog("ERROR: status: [%d][%s]", ret, ModuleGetErrStr(ret)); else - moduleSetType(findModule(EncModule), ENCRYPTION); + findModule(EncModule)->SetType(ENCRYPTION); mod_current_module = NULL; return ret; } @@ -252,7 +252,7 @@ int protocol_module_init(void) if (ret == MOD_ERR_OK) { - moduleSetType(findModule(IRCDModule), PROTOCOL); + findModule(IRCDModule)->SetType(PROTOCOL); /* This is really NOT the correct place to do config checks, but * as we only have the ircd struct filled here, we have to over * here. -GD @@ -404,6 +404,12 @@ Module::~Module() */ } +void Module::SetType(MODType type) +{ + this->type = type; +} + + /** * Add the module to the list of currently loaded modules. * @param m the currently loaded module @@ -781,11 +787,6 @@ int unloadModule(Module * m, User * u) } } -void moduleSetType(Module *m, MODType type) -{ - m->type = type; -} - /** * Prepare a module to be unloaded. * Remove all commands and messages this module is providing, and delete |