Diff

mod_minimix/mod_minimix.lua @ 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
parent 3123:f4e86d2662ec
child 3398:1745021c0a73
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