aboutsummaryrefslogtreecommitdiffstats
path: root/core/hostmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-27 22:31:53 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-27 22:31:53 +0100
commit65b45123fde803751782116779ab9a39f9e6dd67 (patch)
treea9388b2a5678c972baa7b4cf120bc8b178959555 /core/hostmanager.lua
parent8aaef8d056c683a3ad42d99f59250d539ac2edd2 (diff)
downloadprosody-65b45123fde803751782116779ab9a39f9e6dd67.tar.gz
prosody-65b45123fde803751782116779ab9a39f9e6dd67.zip
hostmanager: Convert host-deactivating event parameters to a table
Diffstat (limited to 'core/hostmanager.lua')
-rw-r--r--core/hostmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 330a0d03..91c6d4e1 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -102,7 +102,7 @@ function deactivate(host, reason)
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) };