Software /
code /
prosody
Changeset
1365:864a99eff6d7
Main: Don't use empty event data objects for some global events. Some handlers don't expect it.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 20 Jun 2009 14:35:31 +0500 |
parents | 1364:9ffd5bab6439 |
children | 1366:54b5121b6c83 |
files | prosody |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/prosody Sat Jun 20 12:23:36 2009 +0500 +++ b/prosody Sat Jun 20 14:35:31 2009 +0500 @@ -144,7 +144,7 @@ -- Function to reload the config file function prosody.reload_config() log("info", "Reloading configuration file"); - prosody.events.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 if level == "parser" then @@ -159,7 +159,7 @@ function prosody.reopen_logfiles() log("info", "Re-opening log files"); eventmanager.fire_event("reopen-log-files"); -- Handled by appropriate log sinks - prosody.events.fire_event("reopen-log-files", {}); + prosody.events.fire_event("reopen-log-files"); end -- Function to initiate prosody shutdown @@ -171,7 +171,7 @@ -- Signal to modules that we are ready to start eventmanager.fire_event("server-starting"); -prosody.events.fire_event("server-starting", {}); +prosody.events.fire_event("server-starting"); -- Load SSL settings from config, and create a ctx table local global_ssl_ctx = ssl and config.get("*", "core", "ssl"); @@ -229,7 +229,7 @@ prosody.lock_globals(); eventmanager.fire_event("server-started"); -prosody.events.fire_event("server-started", {}); +prosody.events.fire_event("server-started"); -- Error handler for errors that make it this far local function catch_uncaught_error(err) @@ -251,7 +251,7 @@ end log("info", "Shutdown status: Cleaning up"); -prosody.events.fire_event("server-cleanup", {}); +prosody.events.fire_event("server-cleanup"); -- Ok, we're quitting I know, but we -- need to do some tidying before we go :) @@ -287,5 +287,5 @@ server.setquitting(true); eventmanager.fire_event("server-stopped"); -prosody.events.fire_event("server-stopped", {}); +prosody.events.fire_event("server-stopped"); log("info", "Shutdown status: Complete!");