Software /
code /
prosody-modules
Diff
mod_muc_bot/mod_muc_bot.lua @ 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 |
parent | 4567:bcf4518d18d4 |
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);