aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-28 02:55:14 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-28 02:55:14 +0100
commit5f25d03a92243c77af899942430db763107b22ad (patch)
tree439166cd3a57e2281594eeb72670c1e9b8722707 /plugins
parentc0df6334289a9291e9b43aa5ea0171d80aa1f9e0 (diff)
downloadprosody-5f25d03a92243c77af899942430db763107b22ad.tar.gz
prosody-5f25d03a92243c77af899942430db763107b22ad.zip
mod_presence: Leave alone the from attribute of session.presence. Big thanks to albert for figuring out the steps to reproduce this bug, and for giving us a ([very] slight) performance increase!
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 7c34eefa..0511c888 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -148,10 +148,8 @@ function send_presence_of_available_resources(user, host, jid, recipient_session
local pres = session.presence;
if pres then
pres.attr.to = jid;
- pres.attr.from = session.full_jid;
core_route_stanza(session, pres);
pres.attr.to = nil;
- pres.attr.from = nil;
count = count + 1;
end
end