diff options
author | Adam <Adam@anope.org> | 2013-08-07 19:40:05 +0000 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-07 19:40:05 +0000 |
commit | c48069536922db4a227545fd915c37af141071e9 (patch) | |
tree | 84c54c3088a28a3703adb8df26125db72dd7c9d4 /modules/database/db_sql_live.cpp | |
parent | 7f1b5552dc4ddccb688120d66946601fa695b650 (diff) |
Fix db_sql to not remove objects when shutting down, as some modules that unload before it when shutting down remove their items then
Diffstat (limited to 'modules/database/db_sql_live.cpp')
-rw-r--r-- | modules/database/db_sql_live.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp index 02e8a355f..7ef0528a8 100644 --- a/modules/database/db_sql_live.cpp +++ b/modules/database/db_sql_live.cpp @@ -126,6 +126,11 @@ class DBMySQL : public Module, public Pipe init = false; } + void OnRestart() anope_override + { + init = false; + } + void OnReload(Configuration::Conf *conf) anope_override { Configuration::Block *block = conf->GetModule(this); |