changeset 8695 | a55574754e5f |
parent 8691 | 019b4b3dd5ad |
child 8701 | 0499f3da0ec4 |
--- a/util/startup.lua Sun Mar 25 12:45:24 2018 +0100 +++ b/util/startup.lua Sun Mar 25 17:02:00 2018 +0200 @@ -229,6 +229,11 @@ 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