comparison mod_muc_moderation/mod_muc_moderation.lua @ 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 4665df54719d
children 5f12c75fd210
comparison
equal deleted inserted replaced
4805:683d1ad16b56 4806:80f871bedcdf
64 end 64 end
65 65
66 if not actor_nick then 66 if not actor_nick then
67 local reserved_nickname = room:get_affiliation_data(jid.bare(actor), "reserved_nickname"); 67 local reserved_nickname = room:get_affiliation_data(jid.bare(actor), "reserved_nickname");
68 if reserved_nickname then 68 if reserved_nickname then
69 actor_nick = jid.join(room.jid, reserved_nickname); 69 actor_nick = room.jid .. "/" .. reserved_nickname;
70 end 70 end
71 end 71 end
72 72
73 -- Original stanza to base tombstone on 73 -- Original stanza to base tombstone on
74 local original, err; 74 local original, err;