aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-09 19:43:11 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-09 19:43:11 +0100
commit680cdc8f29f2c5becdc782395d4a108a69947aa4 (patch)
tree1bdb846daf4b89a77203cde390b15f0b9c4dc3a7 /core
parent89fb8fa9f7e7922bed6aabd3de771cef5a00f1b5 (diff)
downloadprosody-680cdc8f29f2c5becdc782395d4a108a69947aa4.tar.gz
prosody-680cdc8f29f2c5becdc782395d4a108a69947aa4.zip
stanza_router: Pass session.to_host to modulemanager, fixes modules for s2sin_unauthed
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 80b51cc6..22c1abb0 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -145,7 +145,7 @@ end
-- that is, they are handled by this server
function core_handle_stanza(origin, stanza)
-- Handlers
- if modules_handle_stanza(select(2, jid_split(stanza.attr.to)) or origin.host, origin, stanza) then return; end
+ if modules_handle_stanza(select(2, jid_split(stanza.attr.to)) or origin.host or origin.to_host, origin, stanza) then return; end
if origin.type == "c2s" or origin.type == "s2sin" then
if origin.type == "c2s" then
if stanza.name == "presence" and origin.roster then