Changeset

4824:205b9d06fe6b

mod_muc_bot: Use correct JID for virtual occupant Mistake introduced in d25f0fea270f Thanks valdikss
author Kim Alvefur <zash@zash.se>
date Sun, 12 Dec 2021 18:33:06 +0100
parents 4823:d3e926bf0c8a
children 4825:4bdfd83e091f
files mod_muc_bot/mod_muc_bot.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_bot/mod_muc_bot.lua	Sat Dec 11 21:20:20 2021 +0100
+++ b/mod_muc_bot/mod_muc_bot.lua	Sun Dec 12 18:33:06 2021 +0100
@@ -24,7 +24,7 @@
 			return true;
 		end
 
-		local occupant = room:new_occupant(module.host, virtual_occupant_jid);
+		local occupant = room:new_occupant(jid.bare(event.from), virtual_occupant_jid);
 		local join = st.presence({from = event.from; to = virtual_occupant_jid});
 		local dest_x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"});
 		occupant:set_session(event.from, join, true);