From 7e64fa124a1f492ae1952fd278c085490d830954 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 25 Mar 2018 17:02:00 +0200 Subject: configmanager: Move firing of the 'config-reloaded' event into util.startup (fixes #1117) --- util/startup.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util') diff --git a/util/startup.lua b/util/startup.lua index a48c2fc7..ba83eca5 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -229,6 +229,11 @@ function startup.add_global_prosody_functions() elseif level == "file" then log("error", "Couldn't read the config file when trying to reload: %s", tostring(err)); end + else + prosody.events.fire_event("config-reloaded", { + filename = prosody.config_file, + config = config.getconfig(), + }); end return ok, (err and tostring(level)..": "..tostring(err)) or nil; end -- cgit v1.2.3