# HG changeset patch # User Matthew Wild # Date 1241894591 -3600 # Node ID 0e02b3301e80c7c22603eb6ba34a931bd616b475 # Parent 9d9570516ce8ffa1c01543b993d5fcc2bf26a666 stanza_router: Pass session.to_host to modulemanager, fixes modules for s2sin_unauthed diff -r 9d9570516ce8 -r 0e02b3301e80 core/stanza_router.lua --- a/core/stanza_router.lua Fri May 08 04:41:18 2009 +0500 +++ b/core/stanza_router.lua Sat May 09 19:43:11 2009 +0100 @@ -145,7 +145,7 @@ -- 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