Software /
code /
prosody-modules
Changeset
4806:80f871bedcdf
mod_muc_moderation: Fix actor JID when moderated from outside (thanks lovetox)
jid.join(a, b) --> a.."@"..b thus you get 'room@muc.host@nick' which ... is not
a proper JID
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 Dec 2021 23:11:16 +0100 |
parents | 4805:683d1ad16b56 |
children | 4807:62a65c52c3f5 |
files | mod_muc_moderation/mod_muc_moderation.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_moderation/mod_muc_moderation.lua Sat Dec 04 16:17:55 2021 +0100 +++ b/mod_muc_moderation/mod_muc_moderation.lua Sat Dec 04 23:11:16 2021 +0100 @@ -66,7 +66,7 @@ if not actor_nick then local reserved_nickname = room:get_affiliation_data(jid.bare(actor), "reserved_nickname"); if reserved_nickname then - actor_nick = jid.join(room.jid, reserved_nickname); + actor_nick = room.jid .. "/" .. reserved_nickname; end end