Diff

plugins/mod_presence.lua @ 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
parent 1150:d71a8f28f18b
child 1210:342f401f354c
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