Kim Alvefur <zash@zash.se> [Mon, 30 May 2022 17:34:58 +0200] rev 12538
util.openmetrics: Set (previously unused, empty) metatable
Silences luacheck warning about the metatable being unused.
Kim Alvefur <zash@zash.se> [Mon, 30 May 2022 17:12:58 +0200] rev 12537
luacheck: Ignore new warning about uses of `not (x == y)` and similar
Added in luacheck 0.26.
Kim Alvefur <zash@zash.se> [Mon, 30 May 2022 16:49:52 +0200] rev 12536
luacheck: Ignore new warning about using variables prefixed with '_'
luacheck 0.26 considers the _ prefix as a hint that the variable or
argument is unused, then warns if they are used despite this.
We have several places where this prefix is used to avoid shadowing
another similarly named variable, resulting in many instances of this
warning.
Kim Alvefur <zash@zash.se> [Sun, 29 May 2022 16:06:42 +0200] rev 12535
core.configmanager: Remove COMPAT for old config format from 2013
Kim Alvefur <zash@zash.se> [Mon, 30 May 2022 16:25:35 +0200] rev 12534
util.vcard: Delete since nothing uses it
Kim Alvefur <zash@zash.se> [Mon, 30 May 2022 15:28:44 +0200] rev 12533
prosodyctl shell: Communicate width of terminal to mod_admin_shell
This lets it adjust the width of tables to the actual terminal width.
Kim Alvefur <zash@zash.se> [Fri, 27 May 2022 14:54:32 +0200] rev 12532
mod_smacks: Indicate that bounces are generated by the server
Could arguably be implied by 'recipient-unavailable' since if it was
available, this error wouldn't happen.
Kim Alvefur <zash@zash.se> [Fri, 27 May 2022 15:08:55 +0200] rev 12531
Merge 0.12->trunk
Kim Alvefur <zash@zash.se> [Fri, 27 May 2022 14:45:35 +0200] rev 12530
mod_smacks: Bounce unhandled stanzas from local origin (fix #1759)
Sending stanzas with a remote session as origin when the stanzas have a
local JID in the from attribute trips validation in core.stanza_router,
leading to warnings:
> Received a stanza claiming to be from remote.example, over a stream authed for localhost.example
Using module:send() uses the local host as origin, which is fine here.
Kim Alvefur <zash@zash.se> [Fri, 27 May 2022 12:05:47 +0200] rev 12529
mod_smacks: Fix bounce of stanzas directed to full JID on unclean disconnect
Fixes #1758
Introduced in 1ea01660c79a
In e62025f949f9 to and from was inverted since it changed from acting on
a reply to acting on the original stanza (or a clone thereof)
Unsure of the purpose of this check, you don't usually send stanzas to
your own full JID. Perhaps guarding against routing loops?
The check was present in the original commit of mod_smacks,
prosody-modules rev 9a7671720dec