aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-05 11:59:51 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-05 11:59:51 +0500
commitb5bf437c6f0b92758772e32f9973d0a85550d616 (patch)
tree83f9fba04a24cc99aeeb18613d6dddf02b409a5f
parent720184a0b5d035382045a38b93b6e30b23e2d0a1 (diff)
downloadprosody-b5bf437c6f0b92758772e32f9973d0a85550d616.tar.gz
prosody-b5bf437c6f0b92758772e32f9973d0a85550d616.zip
mod_presence: Eliminated a jid_split
-rw-r--r--plugins/mod_presence.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 02c3945b..27881215 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -69,7 +69,7 @@ function handle_normal_presence(origin, stanza, core_route_stanza)
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;