From b5bf437c6f0b92758772e32f9973d0a85550d616 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 5 Jul 2009 11:59:51 +0500 Subject: mod_presence: Eliminated a jid_split --- plugins/mod_presence.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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; -- cgit v1.2.3