view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 5723:5f7f6ee32a11

mod_invites_page: Stop displaying the QRCode to mobile devices
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 16 Nov 2023 19:17:44 +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);