author | Waqas Hussain <waqas20@gmail.com> |
Sun, 05 Jul 2009 11:59:51 +0500 | |
changeset 1473 | d2211cbb822f |
parent 1472 | 9b13cea9fa3e |
child 1474 | 6947761fd531 |
--- 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;