view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 4463:8b8246031a5e

mod_smacks: Correct field name for session Fixes another traceback. I did point out that I was breaking everything.
author Kim Alvefur <zash@zash.se>
date Tue, 23 Feb 2021 03:22:33 +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);