diff options
author | Kim Alvefur <zash@zash.se> | 2014-05-10 02:12:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-05-10 02:12:51 +0200 |
commit | ba692ae0970a67d868f87209f1328bb0874e9302 (patch) | |
tree | 0b52a2f20f7d6de9cd3d27a505fff3753976e0ee /plugins | |
parent | ee9ceb739fc87218a728ba73339911a5d5fb1c76 (diff) | |
download | prosody-ba692ae0970a67d868f87209f1328bb0874e9302.tar.gz prosody-ba692ae0970a67d868f87209f1328bb0874e9302.zip |
mod_c2s: Fix traceback if c2s stream sent to component
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_c2s.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index b2a81592..5feb1f2c 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -50,7 +50,7 @@ function stream_callbacks.streamopened(session, attr) 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; |