--- a/core/hostmanager.lua Fri Apr 27 22:18:20 2012 +0100
+++ b/core/hostmanager.lua Fri Apr 27 22:31:53 2012 +0100
@@ -102,7 +102,7 @@
local host_session = hosts[host];
if not host_session then return nil, "The host "..tostring(host).." is not activated"; end
log("info", "Deactivating host: %s", host);
- prosody_events.fire_event("host-deactivating", host, host_session);
+ prosody_events.fire_event("host-deactivating", { host = host, host_session = host_session, reason = reason });
if type(reason) ~= "table" then
reason = { condition = "host-gone", text = tostring(reason or "This server has stopped serving "..host) };