1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 11:36:37 +02:00

Move modules_core_init() to ModuleManager::LoadModuleList().

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1612 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-11-09 03:11:54 +00:00
parent d353167118
commit df30d0bc2a
12 changed files with 30 additions and 30 deletions
+15
View File
@@ -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;
}
}
}