mirror of
https://github.com/anope/anope.git
synced 2026-06-25 05:56:38 +02:00
Require that users have a non-deprecated database module loaded.
This commit is contained in:
@@ -80,6 +80,8 @@ public:
|
||||
DBFlatFile(const Anope::string &modname, const Anope::string &creator)
|
||||
: Module(modname, creator, DATABASE | DEPRECATED | VENDOR)
|
||||
{
|
||||
if (!ModuleManager::FindFirstOf(DATABASE, this))
|
||||
throw ModuleException("db_flatfile is deprecated and can only import old databases.");
|
||||
}
|
||||
|
||||
EventReturn OnLoadDatabase() override
|
||||
|
||||
Reference in New Issue
Block a user