Kim Alvefur <zash@zash.se> [Sat, 13 Nov 2021 22:12:39 +0100] rev 11908
mod_pubsub: Fix traceback in disco of non-existent node (thanks Martin)
In this case `ret` is a table not containing the node, which makes
pubsub_error_reply() try to get an error template with that `ret` table
as index, which returns a `nil` then passed to table.unpack, which in
turn throws the error.
Kim Alvefur <zash@zash.se> [Sat, 13 Nov 2021 13:32:43 +0100] rev 11907
net.connect: Prefer last connection error over last resolver error
E.g. "connection refused" over one IP version instead of NoError for the
other IP version.
Kim Alvefur <zash@zash.se> [Fri, 12 Nov 2021 22:34:04 +0100] rev 11906
util.prosodyctl.shell: Bring back banner set from config!
I miss my custom ANSI-colored greeting!
Kim Alvefur <zash@zash.se> [Fri, 12 Nov 2021 16:52:55 +0100] rev 11905
net.connect: Propagate last error message from resolvers
Previously it would only say "unable to resolve server" for all DNS
problems. While "NoError in A lookup" might not make much sense to
users, it should help in debugging more than the previous generic error.
Friendlier errors will be future work.
Matthew Wild <mwild1@gmail.com> [Fri, 12 Nov 2021 13:30:39 +0000] rev 11904
s2smanager: Fire s2s-destroyed event to mirror s2s-created
The existing events do not fire for unauthed sessions, for example (because
the type does not match). I deemed changing their behaviour too risky, and
the current behaviour may even be more desirable for some uses.
This means we now have roughly paired events:
- s2s-created -> s2s-destroyed (global only)
- s2sin-established -> s2sin-destroyed (global + host)
- s2sout-established -> s2sout-destroyed (global + host)
Matthew Wild <mwild1@gmail.com> [Fri, 12 Nov 2021 13:26:05 +0000] rev 11903
mod_c2s: Disconnect user sessions on a role change event
The overlapping logic for deletion and password changed has been merged into
a single function.
Matthew Wild <mwild1@gmail.com> [Fri, 12 Nov 2021 13:25:09 +0000] rev 11902
usermanager: Fire user-roles-changed event when updating roles of a local user
Kim Alvefur <zash@zash.se> [Fri, 12 Nov 2021 14:22:21 +0100] rev 11901
util.human.io: Use UTF-8-aware length check in padding functions
Kim Alvefur <zash@zash.se> [Fri, 12 Nov 2021 14:21:15 +0100] rev 11900
util.human.io: Fix cutting of UTF-8 into pieces
Down the rabbit hole we go...
Kim Alvefur <zash@zash.se> [Fri, 12 Nov 2021 12:19:01 +0100] rev 11899
util.human.io: Trim any broken UTF-8 from ellipsis
This should fix basic problems with multi-byte UTF-8 sequences getting
cut in the middle.
Down the rabbit hole we go...