Software /
code /
prosody
Diff
core/configmanager.lua @ 1013:943f2cd7e480
Merging stable into unstable
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 20 Apr 2009 03:03:07 +0100 |
parent | 1000:a73715a9267f |
child | 1504:9d8c35e98ca2 |
line wrap: on
line diff
--- a/core/configmanager.lua Wed Apr 15 00:21:40 2009 +0100 +++ b/core/configmanager.lua Mon Apr 20 03:03:07 2009 +0100 @@ -12,6 +12,8 @@ local setmetatable, loadfile, pcall, rawget, rawset, io, error, dofile, type = setmetatable, loadfile, pcall, rawget, rawset, io, error, dofile, type; +local eventmanager = require "core.eventmanager"; + module "configmanager" local parsers = {}; @@ -68,6 +70,9 @@ if f then local ok, err = parsers[format].load(f:read("*a")); f:close(); + if ok then + eventmanager.fire_event("config-reloaded", { filename = filename, format = format }); + end return ok, "parser", err; end return f, "file", err;