Diff

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
parent 4754:4665df54719d
child 4814:5f12c75fd210
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