Software /
code /
prosody
Changeset
6279:16d5b55c8d8d
mod_c2s: Fix traceback if c2s stream sent to component
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 10 May 2014 02:12:51 +0200 |
parents | 6166:46cb87d531a7 |
children | 6280:ce1a20bd2053 |
files | plugins/mod_c2s.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;