Software /
code /
prosody-modules
File
mod_ignore_host_chatstates/mod_ignore_host_chatstates.lua @ 5993:a0d77b427d50
mod_rest: Wrap mod_tokenauth errors
In some cases of expired or invalid tokens the error from
mod_tokenauth.get_token_session() was returned bare with status 200
instead of via the error formatting handler.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Sep 2024 21:10:45 +0200 |
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);