# HG changeset patch # User Matthew Wild # Date 1243475714 -3600 # Node ID 86b01a837126c4e4a463f9b4fe6e8bfa384aa5cc # Parent 5f992ddc968508c6332c4dc0b25903509ec9c2ca 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! diff -r 5f992ddc9685 -r 86b01a837126 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Thu May 28 02:17:19 2009 +0100 +++ b/plugins/mod_presence.lua Thu May 28 02:55:14 2009 +0100 @@ -148,10 +148,8 @@ 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