Software /
code /
prosody
Diff
core/configmanager.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 | 8555:4f0f5b49bb03 |
child | 9241:2d82a926826f |
line wrap: on
line diff
--- a/core/configmanager.lua Sun Mar 25 12:45:24 2018 +0100 +++ b/core/configmanager.lua Sun Mar 25 17:02:00 2018 +0200 @@ -11,8 +11,6 @@ setmetatable, rawget, rawset, io, error, dofile, type, pairs; local format, math_max = string.format, math.max; -local fire_event = prosody and prosody.events.fire_event or function () end; - local envload = require"util.envload".envload; local deps = require"util.dependencies"; local resolve_relative_path = require"util.paths".resolve_relative_path; @@ -86,11 +84,6 @@ f:close(); if ok then config = new_config; - fire_event("config-reloaded", { - filename = filename, - format = config_format, - config = config - }); end return ok, "parser", err; end