Attached.

--
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prosody-dev/aijAv7TOJ4DZtceQ%40singpolyma-beefy.lan.
# HG changeset patch
# User Stephen Paul Weber <[email protected]>
# Date 1781055646 18000
#      Tue Jun 09 20:40:46 2026 -0500
# Node ID 3d6bcaeaabd9b850b023ac8fa41bd3533b9c7270
# Parent  89cb461f4ec99c701c4df06316f3c8cd89804d5e
mod_muc: event for role change

diff -r 89cb461f4ec9 -r 3d6bcaeaabd9 plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Tue Jun 09 20:37:27 2026 -0500
+++ b/plugins/muc/muc.lib.lua	Tue Jun 09 20:40:46 2026 -0500
@@ -1670,6 +1670,13 @@
 	local prev_role = occupant.role;
 	occupant.role = role;
 	self:save_occupant(occupant);
+	local event = {
+		room = self,
+		actor = actor,
+		occupant = occupant,
+		role = role,
+	};
+	module:fire_event("muc-set-role", event);
 	self:publicise_occupant_status(occupant, x, nil, actor, reason, prev_role);
 	if role == nil then
 		module:fire_event("muc-occupant-left", {

Reply via email to