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.
Kim Alvefur <zash@zash.se> [Sun, 22 Jan 2023 14:42:07 +0100] rev 12866
util.prosodyctl.shell: Close state on exit to fix saving shell history
This ensures a last round of garbage collection and finalizers, which
should include flushing the readline history file.
Test procedure:
```
$ ./prosodyctl shell
prosody> s2s:show() -- any command that is not the last in history
... output
prosody> bye
$ ./prosodyctl shell
prosody> ^P
```
After this, the shell prompt should contain the last command from before
the "bye". Before this patch, recent history is gone most of the time.
Kim Alvefur <zash@zash.se> [Sat, 21 Jan 2023 17:24:45 +0100] rev 12865
mod_muc_mam: Use higher precision timestamps
See also 781772c8b6d9
Kim Alvefur <zash@zash.se> [Sat, 21 Jan 2023 17:18:16 +0100] rev 12864
Merge 0.12->trunk
Kim Alvefur <zash@zash.se> [Sat, 21 Jan 2023 17:14:55 +0100] rev 12863
mod_muc_mam: Copy "include total" behavior from mod_mam
Not sure why this was missing from MUC MAM, it already had some of the
code for dealing with it.
Kim Alvefur <zash@zash.se> [Sat, 21 Jan 2023 17:09:22 +0100] rev 12862
mod_muc_mam: Add mam#extended form fields #1796 (Thanks Rain)
Oversight in cabb022f31c0
Kim Alvefur <zash@zash.se> [Sat, 21 Jan 2023 16:54:43 +0100] rev 12861
mod_mam,mod_muc_mam: Minimize differences (reorder, copy some comments)
Should have no functional difference, but makes it easier keeping
mod_mam and mod_muc_mam in sync.
Kim Alvefur <zash@zash.se> [Fri, 20 Jan 2023 23:40:54 +0100] rev 12860
util.dnsregistry: Remove unintentional 'Unassigned' record