# HG changeset patch # User Matthew Wild # Date 1335562313 -3600 # Node ID 2587e249927fc65bca2985180709f176442e867c # Parent da3c1d980c0444848b60e1bcfafa4474e379f53b hostmanager: Convert host-deactivating event parameters to a table diff -r da3c1d980c04 -r 2587e249927f core/hostmanager.lua --- 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) };