mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:46:36 +02:00
Add db_sql:import config option so we can know for sure whether or not we want a database import
This commit is contained in:
@@ -76,6 +76,9 @@ class DBMySQL : public Module, public Pipe
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
OnReload();
|
||||
|
||||
if (ModuleManager::FindFirstOf(DATABASE) != this)
|
||||
throw ModuleException("If db_sql_live is loaded it must be the first database module loaded.");
|
||||
}
|
||||
|
||||
void OnNotify() anope_override
|
||||
|
||||
Reference in New Issue
Block a user