Software /
code /
prosody-modules
File
mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 5636:7e5701fbae88
mod_invites_api: add `module:depends("http");` to use `module:http_url()` in `prosodyctl`.
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Mon, 31 Jul 2023 11:52:00 +0700 |
parent | 3419:aed47ebd26d3 |
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);