diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-27 22:31:53 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-27 22:31:53 +0100 |
commit | 88637ab348548a4893b1bea2bb813c13d7c26f19 (patch) | |
tree | a9388b2a5678c972baa7b4cf120bc8b178959555 /core | |
parent | 5542ce387f2a180278d17193e159fdd6d6ac8238 (diff) | |
download | prosody-88637ab348548a4893b1bea2bb813c13d7c26f19.tar.gz prosody-88637ab348548a4893b1bea2bb813c13d7c26f19.zip |
hostmanager: Convert host-deactivating event parameters to a table
Diffstat (limited to 'core')
-rw-r--r-- | core/hostmanager.lua | 2 |
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) }; |