Changeset

1364:9ffd5bab6439

Main: removed some eventmanager references (replaced by prosody.events)
author Waqas Hussain <waqas20@gmail.com>
date Sat, 20 Jun 2009 12:23:36 +0500
parents 1363:daa51f48736d
children 1365:864a99eff6d7
files prosody
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Sat Jun 20 12:16:20 2009 +0500
+++ b/prosody	Sat Jun 20 12:23:36 2009 +0500
@@ -144,7 +144,6 @@
 -- 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 @@
 -- 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 @@
 		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 @@
 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