Kim Alvefur <zash@zash.se> [Mon, 30 Jan 2023 00:38:26 +0100] rev 12876
mod_storage_sql: Record connection to database as module status
Allows retrieving this in e.g. a health reporting module
Thanks pfak
Kim Alvefur <zash@zash.se> [Mon, 30 Jan 2023 00:14:50 +0100] rev 12875
mod_admin_shell: Match substring in muc:affiliations() like muc:occupants()
Maybe one day we'll get consistent filtering semantics everywhere.
Kim Alvefur <zash@zash.se> [Sun, 29 Jan 2023 21:37:13 +0100] rev 12874
mod_admin_shell: Sort MUC users by relation and JID
Suggested by MattJ, our resident UI expert :)
Kim Alvefur <zash@zash.se> [Sun, 29 Jan 2023 18:57:28 +0100] rev 12873
mod_admin_shell: Make Role and Affiliation columns the same width for aesthetics
The length of the title "Affiliation" made them both close enough that
it looked off.
Kim Alvefur <zash@zash.se> [Sun, 29 Jan 2023 18:31:25 +0100] rev 12872
mod_admin_shell: Use tables to present MUC users
Tables are awesome!
Kim Alvefur <zash@zash.se> [Sun, 29 Jan 2023 17:55:56 +0100] rev 12871
mod_admin_shell: Factor out room retrieval into common function
Justification: See diffstat
Kim Alvefur <zash@zash.se> [Sun, 29 Jan 2023 17:53:21 +0100] rev 12870
mod_admin_shell: Add muc:affiliations(room) command to list memberships
Easier than going trough muc:room():each_affiliation() since you have to
do fiddly things to reach the print() function.
Kim Alvefur <zash@zash.se> [Sun, 29 Jan 2023 17:41:08 +0100] rev 12869
mod_admin_shell: Add muc:occupants(room) command to list occupants
Easier than going trough muc:room():each_occupant() since you have to do
fiddly things to reach the print() function.
Kim Alvefur <zash@zash.se> [Sun, 22 Jan 2023 15:43:44 +0100] rev 12868
Merge 0.12->trunk
Kim Alvefur <zash@zash.se> [Sun, 22 Jan 2023 14:45:47 +0100] rev 12867
util.startup: Close state on exit to ensure GC finalizers are called
Ensures a last round of garbage collection and that finalizers are
called. Fixes things like proper closing of SQLite3 state.
There are more calls to os.exit() but most of them exit with an error or
in a case where a final GC sweep might not matter as much.
It would be nice if this was the default.
Calling util.statup.exit() everywhere may be sensible, but would be more
involved, requiring imports everywhere.