view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 4690:82dabfffaddf

mod_muc_require_tos: Add this new module
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 16 Sep 2021 20:41:14 +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);