aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-05 11:57:18 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-05 11:57:18 +0500
commit720184a0b5d035382045a38b93b6e30b23e2d0a1 (patch)
treeeb013d91839592ff07f3e8a42fbef09a789063b1 /plugins/mod_presence.lua
parent18ab4901ef98fcb320ee62b150d4ec51460fe63d (diff)
downloadprosody-720184a0b5d035382045a38b93b6e30b23e2d0a1.tar.gz
prosody-720184a0b5d035382045a38b93b6e30b23e2d0a1.zip
mod_presence: Removed some unnecessary code
Diffstat (limited to 'plugins/mod_presence.lua')
-rw-r--r--plugins/mod_presence.lua3
1 files changed, 0 insertions, 3 deletions
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