--- a/plugins/mod_c2s.lua Fri May 09 19:59:49 2014 +0200
+++ b/plugins/mod_c2s.lua Sat May 10 02:12:51 2014 +0200
@@ -50,7 +50,7 @@
session.streamid = uuid_generate();
(session.log or session)("debug", "Client sent opening <stream:stream> to %s", session.host);
- if not hosts[session.host] then
+ if not hosts[session.host] or not hosts[session.host].users then
-- We don't serve this host...
session:close{ condition = "host-unknown", text = "This server does not serve "..tostring(session.host)};
return;