Thu, 28 May 2009 02:55:14 +0100
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!
plugins/mod_presence.lua | file | annotate | diff | comparison | revisions |
--- 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