Changeset

1209:86b01a837126

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!
author Matthew Wild <mwild1@gmail.com>
date Thu, 28 May 2009 02:55:14 +0100
parents 1208:5f992ddc9685
children 1210:342f401f354c
files plugins/mod_presence.lua
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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