From 5f25d03a92243c77af899942430db763107b22ad Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 28 May 2009 02:55:14 +0100 Subject: 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 | 2 -- 1 file changed, 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 -- cgit v1.2.3