mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua
author Matthew Wild <mwild1@gmail.com>
Thu, 08 Jun 2023 11:30:39 +0100
changeset 5536 d84757f9adcb
parent 3423 aed47ebd26d3
permissions -rw-r--r--
mod_firewall: scripts: spam-blocklists: Check sender and inviter of MUC invitations against blocklist

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);