Changeset

3124:cabe58ae17c9

mod_minimix: Set full JID when dumping cached stanzas
author Kim Alvefur <zash@zash.se>
date Tue, 19 Jun 2018 22:27:59 +0200
parents 3123:f4e86d2662ec
children 3125:07a2ba55de4d
files mod_minimix/mod_minimix.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_minimix/mod_minimix.lua	Tue Jun 19 22:00:17 2018 +0200
+++ b/mod_minimix/mod_minimix.lua	Tue Jun 19 22:27:59 2018 +0200
@@ -35,7 +35,9 @@
 			if presences then
 				-- Joined but no presence? Weird
 				for _, pres in pairs(presences) do
-					origin.send(st.clone(pres));
+					pres = st.clone(pres);
+					pres.attr.to = origin.full_jid;
+					origin.send(pres);
 				end
 			end
 			-- FIXME should send ones own presence last