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

Missed OCDing over src/protocol/*, plus fixed a minor lack of braces and fixed Config to work in an out-of-source build.

This commit is contained in:
Naram Qashat
2010-06-29 08:21:20 -04:00
parent 950cfcd31e
commit de1bf10690
10 changed files with 733 additions and 831 deletions
+2 -6
View File
@@ -16,17 +16,13 @@ std::vector<Module *> ModuleManager::EventHandlers[I_END];
void ModuleManager::LoadModuleList(std::list<std::string> &ModuleList)
{
for (std::list<std::string>::iterator it = ModuleList.begin(), it_end = ModuleList.end(); it != it_end; ++it)
{
ModuleManager::LoadModule(*it, NULL);
}
}
void ModuleManager::LoadModuleList(std::list<ci::string> &ModuleList)
{
for (std::list<ci::string>::iterator it = ModuleList.begin(), it_end = ModuleList.end(); it != it_end; ++it)
{
ModuleManager::LoadModule(*it, NULL);
}
}
/**
@@ -284,7 +280,7 @@ void ModuleManager::DeleteModule(Module *m)
{
if (!m || !m->handle)
return;
const char *err;
void (*destroy_func)(Module *m);
@@ -307,7 +303,7 @@ void ModuleManager::DeleteModule(Module *m)
if (dlclose(handle))
Alog() << dlerror();
}
if (!filename.empty())
DeleteFile(filename.c_str());
}