# HG changeset patch # User Kim Alvefur # Date 1399680771 -7200 # Node ID 16d5b55c8d8d740732fa12845f0b1d92e77a6893 # Parent 46cb87d531a7d7c87c7c2f108de36db12ca77bb5 mod_c2s: Fix traceback if c2s stream sent to component diff -r 46cb87d531a7 -r 16d5b55c8d8d plugins/mod_c2s.lua --- 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 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;