view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 5016:964de9997552

mod_admin_blocklist: Fix traceback due to misplaced parenthesis get_jids_with_role() throws an exception when 'host' is nil since Prosody trunk rev 7ca5645f46cd
author Kim Alvefur <zash@zash.se>
date Sat, 27 Aug 2022 15:39:38 +0200
parents aed47ebd26d3
children
line wrap: on
line source

module:hook("message/host", function (event)
	local stanza = event.stanza;
	if #stanza.tags == 1 and stanza.tags[1].attr.xmlns == "http://jabber.org/protocol/chatstates" then
		return true;
	end
end, -10);