view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 4228:3eb595cf847f

mod_http_oauth2: Accept empty scope Some tool I used couldn't not send a scope, preventing it from working with mod_http_oauth2. This change should fix that.
author Kim Alvefur <zash@zash.se>
date Fri, 23 Oct 2020 22:23:20 +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);