Mercurial > prosody-modules
view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 3956:ebc1f1d962c5
mod_stanzas: tighten up stanza check and add explanatory text
author | JC Brand <jc@opkode.com> |
---|---|
date | Fri, 27 Mar 2020 11:56:14 +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);