1
0
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:
Adam
2013-03-18 11:46:14 -05:00
parent 51963915ba
commit 731912f01e
3 changed files with 28 additions and 3 deletions
+3
View File
@@ -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