# HG changeset patch
# User Waqas Hussain <waqas20@gmail.com>
# Date 1246777038 -18000
# Node ID 9b13cea9fa3ee826f2206bc704dfc2a40baaad6d
# Parent  8b3753b080fcf68c95e4b84e1c34195b7dbcfc89
mod_presence: Removed some unnecessary code

diff -r 8b3753b080fc -r 9b13cea9fa3e plugins/mod_presence.lua
--- a/plugins/mod_presence.lua	Fri Jul 03 21:47:26 2009 +0100
+++ b/plugins/mod_presence.lua	Sun Jul 05 11:57:18 2009 +0500
@@ -119,13 +119,10 @@
 				recalc_resource_map(origin);
 			end
 			if origin.directed then
-				local old_from = stanza.attr.from;
-				stanza.attr.from = origin.full_jid;
 				for jid in pairs(origin.directed) do
 					stanza.attr.to = jid;
 					core_route_stanza(origin, stanza);
 				end
-				stanza.attr.from = old_from;
 				origin.directed = nil;
 			end
 		else