mirror of
https://github.com/anope/anope.git
synced 2026-06-25 16:26:37 +02:00
Require that users have a non-deprecated database module loaded.
This commit is contained in:
@@ -262,11 +262,11 @@ Module *ModuleManager::FindModule(const Anope::string &name)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Module *ModuleManager::FindFirstOf(ModType type)
|
||||
Module *ModuleManager::FindFirstOf(ModType type, Module *ignore)
|
||||
{
|
||||
for (auto *m : Modules)
|
||||
{
|
||||
if (m->type & type)
|
||||
if (m->type & type && m != ignore)
|
||||
return m;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user