Sun, 05 Jul 2009 11:59:51 +0500
mod_presence: Eliminated a jid_split
plugins/mod_presence.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_presence.lua Sun Jul 05 11:57:18 2009 +0500 +++ b/plugins/mod_presence.lua Sun Jul 05 11:59:51 2009 +0500 @@ -69,7 +69,7 @@ core_route_stanza(origin, stanza); end end - local node, host = jid_split(stanza.attr.from); + local node, host = origin.username, origin.host; for _, res in pairs(hosts[host].sessions[node].sessions) do -- broadcast to all resources if res ~= origin and res.presence then -- to resource stanza.attr.to = res.full_jid;