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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user