mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua
author Matthew Wild <mwild1@gmail.com>
Thu, 14 Mar 2024 09:48:30 +0000
changeset 5874 1ac4a59ac575
parent 3423 aed47ebd26d3
permissions -rw-r--r--
mod_firewall: Fix syntax error (thanks mirux)

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