plugins/mod_blocklist.lua
changeset 10058 0656bd283fa2
parent 10057 4b2cc8a60449
child 10115 0f335815244f
--- a/plugins/mod_blocklist.lua	Thu Jun 20 21:40:27 2019 +0200
+++ b/plugins/mod_blocklist.lua	Thu Jun 20 21:44:43 2019 +0200
@@ -189,6 +189,7 @@
 
 	if is_blocking then
 		for jid in pairs(send_unavailable) do
+			-- Check that this JID isn't already blocked, i.e. this is not a change
 			if not blocklist[jid] then
 				for _, session in pairs(sessions[username].sessions) do
 					if session.presence then