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!

Thu, 28 May 2009 02:55:14 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 28 May 2009 02:55:14 +0100
changeset 1209
86b01a837126
parent 1208
5f992ddc9685
child 1210
342f401f354c

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

mercurial