diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-09 03:11:54 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-09 03:11:54 +0000 |
commit | df30d0bc2a52abd9889d754d30ce6aba70ae87cd (patch) | |
tree | f2a63ab31674712decedbf0528d3e7d1f89d031b /src/modulemanager.cpp | |
parent | d35316711894c64f781d923a88243da5757cc2ab (diff) |
Move modules_core_init() to ModuleManager::LoadModuleList().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1612 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r-- | src/modulemanager.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 21ccd640d..1e5a8f8bb 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -11,3 +11,18 @@ #include "modules.h" #include "language.h" #include "version.h" + +void ModuleManager::LoadModuleList(int total_modules, char **module_list) +{ + int idx; + Module *m; + int status = 0; + for (idx = 0; idx < total_modules; idx++) { + m = findModule(module_list[idx]); + if (!m) { + status = loadModule(module_list[idx], NULL); + mod_current_module = NULL; + mod_current_user = NULL; + } + } +} |