# HG changeset patch
# User Waqas Hussain <waqas20@gmail.com>
# Date 1246777191 -18000
# Node ID d2211cbb822f8b561658462a9b86b6efeeb92a1c
# Parent  9b13cea9fa3ee826f2206bc704dfc2a40baaad6d
mod_presence: Eliminated a jid_split

diff -r 9b13cea9fa3e -r d2211cbb822f plugins/mod_presence.lua
--- 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;