view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 5838:1ae8f7b3787a

mod_firewall: Fix REPORT TO action name in documentation
author Matthew Wild <mwild1@gmail.com>
date Mon, 12 Feb 2024 16:31:25 +0000
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);