To allow modules to store state on participants who are not otherwise 
affiliated with an affiliation.

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/aijBMc2IuOcCKBj9%40singpolyma-beefy.lan.
# HG changeset patch
# User Stephen Paul Weber <[email protected]>
# Date 1781055751 18000
#      Tue Jun 09 20:42:31 2026 -0500
# Node ID a36734e75ed7fc2e33e139eb62ce50e61bd1d809
# Parent  3d6bcaeaabd9b850b023ac8fa41bd3533b9c7270
mod_muc: Allow affiliation data for aff=none

To allow modules to store state on participants who are not otherwise affiliated with an affiliation.

diff -r 3d6bcaeaabd9 -r a36734e75ed7 plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Tue Jun 09 20:40:46 2026 -0500
+++ b/plugins/muc/muc.lib.lua	Tue Jun 09 20:42:31 2026 -0500
@@ -1490,7 +1490,7 @@
 
 	-- Set in 'database'
 	self._affiliations[jid] = affiliation;
-	if not affiliation or data == false or (data ~= nil and next(data) == nil) then
+	if data == false or (data ~= nil and next(data) == nil) then
 		module:log("debug", "Clearing affiliation data for %s", jid);
 		self._affiliation_data[jid] = nil;
 	elseif data then

Reply via email to