Load core_*.so instead of cmd_*.so

This commit is contained in:
Attila Molnar 2014-03-05 16:30:00 +01:00
parent 050c2cf253
commit b935da1b4c
2 changed files with 2 additions and 2 deletions

View File

@ -677,7 +677,7 @@ void ServerConfig::ApplyModules(User* user)
for (ModuleManager::ModuleMap::iterator i = removed_modules.begin(); i != removed_modules.end(); ++i)
{
const std::string& modname = i->first;
// Don't remove cmd_*.so, just remove m_*.so
// Don't remove core_*.so, just remove m_*.so
if (modname.c_str()[0] == 'c')
continue;
if (ServerInstance->Modules->Unload(i->second))

View File

@ -136,7 +136,7 @@ void ModuleManager::LoadCoreModules(std::map<std::string, ServiceList>& servicem
dirent* entry = NULL;
while (0 != (entry = readdir(library)))
{
if (InspIRCd::Match(entry->d_name, "cmd_*.so", ascii_case_insensitive_map))
if (InspIRCd::Match(entry->d_name, "core_*.so", ascii_case_insensitive_map))
{
std::cout << ".";
fflush(stdout);