view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 4680:59fdda04b87e

mod_auto_moved: Fix README rendering
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Sep 2021 19:27:06 +0100
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);