From 720184a0b5d035382045a38b93b6e30b23e2d0a1 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 5 Jul 2009 11:57:18 +0500 Subject: mod_presence: Removed some unnecessary code --- plugins/mod_presence.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index df31a4c5..02c3945b 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -119,13 +119,10 @@ function handle_normal_presence(origin, stanza, core_route_stanza) 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 -- cgit v1.2.3