mirror of
https://github.com/anope/anope.git
synced 2026-06-25 16:46:37 +02:00
Rewrote BuildStringList to use std::list instead of char**
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2632 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -15,16 +15,13 @@
|
||||
|
||||
std::vector<Module *> ModuleManager::EventHandlers[I_END];
|
||||
|
||||
void ModuleManager::LoadModuleList(int total_modules, char **module_list)
|
||||
void ModuleManager::LoadModuleList(std::list<std::string> &ModuleList)
|
||||
{
|
||||
int idx;
|
||||
Module *m;
|
||||
int status = 0;
|
||||
for (idx = 0; idx < total_modules; idx++) {
|
||||
m = findModule(module_list[idx]);
|
||||
if (!m) {
|
||||
status = ModuleManager::LoadModule(module_list[idx], NULL);
|
||||
}
|
||||
for (std::list<std::string>::iterator it = ModuleList.begin(); it != ModuleList.end(); ++it)
|
||||
{
|
||||
Module *m = findModule(it->c_str());
|
||||
if (!m)
|
||||
ModuleManager::LoadModule(*it, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user