summaryrefslogtreecommitdiff
path: root/modules/commands/os_reload.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-04-06 23:01:10 -0400
committerAdam <Adam@anope.org>2014-04-06 23:01:10 -0400
commit43219d3906a6a1b980319ae993c53f7606e438a6 (patch)
tree9fa29283a3e104069cc76362d7114c395e6cac5e /modules/commands/os_reload.cpp
parent1f8dec4c242200403640ed72043899aa08cb81dd (diff)
Do not apply module changes on rehash until after the new config has been applied. Fix renaming opertypes on reload.
Diffstat (limited to 'modules/commands/os_reload.cpp')
-rw-r--r--modules/commands/os_reload.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/os_reload.cpp b/modules/commands/os_reload.cpp
index 13b0a8254..09654811b 100644
--- a/modules/commands/os_reload.cpp
+++ b/modules/commands/os_reload.cpp
@@ -26,8 +26,11 @@ class CommandOSReload : public Command
Log(LOG_ADMIN, source, this);
Configuration::Conf *new_config = new Configuration::Conf();
- delete Config;
+ Configuration::Conf *old = Config;
Config = new_config;
+ Config->Post(old);
+ delete old;
+
source.Reply(_("Services' configuration has been reloaded."));
}
catch (const ConfigException &ex)