From 731912f01eb14d811575c492dc64b60084bd412c Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 18 Mar 2013 11:46:14 -0500 Subject: Add db_sql:import config option so we can know for sure whether or not we want a database import --- modules/database/db_sql_live.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/database/db_sql_live.cpp') diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp index 62f1c0ca4..c7c48937a 100644 --- a/modules/database/db_sql_live.cpp +++ b/modules/database/db_sql_live.cpp @@ -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 -- cgit