Fix jid.split test function
[prosody.git] / main.lua
index ec883234d53881c8b05f151f08b62c42ec745b0c..eac26fe5fd188a87e79784ed2f7d2c77176d1b31 100644 (file)
--- a/main.lua
+++ b/main.lua
@@ -17,7 +17,7 @@ hosts = {};
 
 if config.hosts and #config.hosts > 0 then
        for _, host in pairs(config.hosts) do
-               hosts[host] = {type = "local", connected = true, sessions = {}};
+               hosts[host] = {type = "local", connected = true, sessions = {}, host = host};
        end
 else error("No hosts defined in the configuration file"); end