aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-20 12:23:36 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-20 12:23:36 +0500
commitf06088c7fa5b2ee30976e8dba72a43e660ebf644 (patch)
tree39196a30ff2b98b62d21a39a7d460ef4ca23bcf1 /prosody
parent72d328bf9597fa6bec876773173976769c4d1402 (diff)
downloadprosody-f06088c7fa5b2ee30976e8dba72a43e660ebf644.tar.gz
prosody-f06088c7fa5b2ee30976e8dba72a43e660ebf644.zip
Main: removed some eventmanager references (replaced by prosody.events)
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody6
1 files changed, 1 insertions, 5 deletions
diff --git a/prosody b/prosody
index afff290f..2f0eacb0 100755
--- a/prosody
+++ b/prosody
@@ -144,7 +144,6 @@ end);
-- Function to reload the config file
function prosody.reload_config()
log("info", "Reloading configuration file");
- eventmanager.fire_event("reloading-config");
prosody.events.fire_event("reloading-config", {});
local ok, level, err = config.load((rawget(_G, "CFG_CONFIGDIR") or ".").."/prosody.cfg.lua");
if not ok then
@@ -166,8 +165,7 @@ end
-- Function to initiate prosody shutdown
function prosody.shutdown(reason)
log("info", "Shutting down: %s", reason or "unknown reason");
- eventmanager.fire_event("server-stopping", { reason = reason });
- prosody.events.fire_event("server-stopping", {});
+ prosody.events.fire_event("server-stopping", {reason = reason});
server.setquitting(true);
end
@@ -245,7 +243,6 @@ local function catch_uncaught_error(err)
log("error", "%s", traceback);
end
- eventmanager.fire_event("very-bad-error", "*", err, traceback);
prosody.events.fire_event("very-bad-error", {error = err, traceback = traceback});
end
@@ -254,7 +251,6 @@ while select(2, xpcall(server.loop, catch_uncaught_error)) ~= "quitting" do
end
log("info", "Shutdown status: Cleaning up");
-eventmanager.fire_event("server-cleanup");
prosody.events.fire_event("server-cleanup", {});
-- Ok, we're quitting I know, but we