mirror of
https://github.com/anope/anope.git
synced 2026-06-29 16:16:38 +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:
@@ -170,25 +170,6 @@ static int displayMessageFromHash(const char *name)
|
||||
|
||||
/************************************************/
|
||||
|
||||
/**
|
||||
* Load up a list of modules.
|
||||
* @param number The number of modules to load
|
||||
* @param list The list of modules to load
|
||||
**/
|
||||
void modules_core_init(int number, char **list)
|
||||
{
|
||||
int idx;
|
||||
Module *m;
|
||||
int status = 0;
|
||||
for (idx = 0; idx < number; idx++) {
|
||||
m = findModule(list[idx]);
|
||||
if (!m) {
|
||||
status = loadModule(list[idx], NULL);
|
||||
mod_current_module = NULL;
|
||||
mod_current_user = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
*
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user