aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-31 13:52:41 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-31 13:52:41 +0500
commit86e114c8a2170dda2f7340c886c2c115cd5a720e (patch)
treec954c1f57fd8bc763dcb6549543a13c774b8e473 /core
parent05906a21063da546c38638f8ad22d4aa5899b33d (diff)
downloadprosody-86e114c8a2170dda2f7340c886c2c115cd5a720e.tar.gz
prosody-86e114c8a2170dda2f7340c886c2c115cd5a720e.zip
Send host, and not the recipient's JID to module manager (fixes #53)
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 fb5b2cbf..fe374912 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -125,7 +125,7 @@ end
-- that is, they are handled by this server
function core_handle_stanza(origin, stanza)
-- Handlers
- if modules_handle_stanza(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, 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