Software /
code /
prosody
Diff
util/startup.lua @ 8692:a55574754e5f
configmanager: Move firing of the 'config-reloaded' event into util.startup (fixes #1117)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Mar 2018 17:02:00 +0200 |
parent | 8688:019b4b3dd5ad |
child | 8698:0499f3da0ec4 |
line wrap: on
line diff
--- 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