Mercurial > prosody-modules
view mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 5175:432587ad1642
mod_muc_rtbl: fix traceback because of scoping error
There is no "event" there, we have to use the occupant data
instead. That's what you get for moving code around!
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Wed, 22 Feb 2023 13:33:16 +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);