Software /
code /
prosody
Changeset
667:4f4d94253547
Send host, and not the recipient's JID to module manager (fixes #53)
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 31 Dec 2008 13:52:41 +0500 |
parents | 666:27f76695f43b |
children | 668:50072761e02d |
files | core/stanza_router.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/stanza_router.lua Wed Dec 31 10:16:42 2008 +0500 +++ b/core/stanza_router.lua Wed Dec 31 13:52:41 2008 +0500 @@ -125,7 +125,7 @@ -- 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