Thu, 02 Dec 2021 13:56:50 +0100 mod_smacks: Avoid duplicated queueing using flag on session instead of stanza
Kim Alvefur <zash@zash.se> [Thu, 02 Dec 2021 13:56:50 +0100] rev 11988
mod_smacks: Avoid duplicated queueing using flag on session instead of stanza Mutating the stanza like this is Really Bad Practice.
Thu, 02 Dec 2021 13:49:42 +0100 mod_smacks: Remove dead conditional
Kim Alvefur <zash@zash.se> [Thu, 02 Dec 2021 13:49:42 +0100] rev 11987
mod_smacks: Remove dead conditional `cached_stanza` can't be falsy because util.stanza.clone() would have thrown rather than return nil, or `._cached=true` would have.
Thu, 02 Dec 2021 03:03:44 +0100 mod_smacks: Ensure hibernating session is not connected
Kim Alvefur <zash@zash.se> [Thu, 02 Dec 2021 03:03:44 +0100] rev 11986
mod_smacks: Ensure hibernating session is not connected Turns out that if you destroy a session from inside prosody, it goes into hibernation but stays connected and continues processing stanzas.
Wed, 01 Dec 2021 23:18:18 +0100 mod_smacks: Reorder imports etc
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 23:18:18 +0100] rev 11985
mod_smacks: Reorder imports etc Mostly sorted by name of import (sort -k4) and grouped by kind
Wed, 01 Dec 2021 23:03:11 +0100 mod_smacks: Fix empty cache check
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 23:03:11 +0100] rev 11984
mod_smacks: Fix empty cache check In Lua, every value except `nil` and `false` are considered true in boolean expressions, even `0` as here, which means this was dead code.
Wed, 01 Dec 2021 21:04:32 +0100 mod_smacks: Use stanza type checking function for correctness
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 21:04:32 +0100] rev 11983
mod_smacks: Use stanza type checking function for correctness Non-stanza tables with an 'attr' field might be rare in Prosody, but better to be Correct
Wed, 01 Dec 2021 16:26:53 +0100 mod_smacks: Remove redundant fields
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 16:26:53 +0100] rev 11982
mod_smacks: Remove redundant fields Given that the registry is scoped per user and the module is scoped per host, there seems no point to checking or storing both username and host here.
Wed, 01 Dec 2021 16:20:40 +0100 mod_smacks: Factor out formatting of 'h' value
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 16:20:40 +0100] rev 11981
mod_smacks: Factor out formatting of 'h' value
Wed, 01 Dec 2021 15:27:55 +0100 mod_smacks: Remove dead legacy code for 0.10
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 15:27:55 +0100] rev 11980
mod_smacks: Remove dead legacy code for 0.10
Wed, 01 Dec 2021 15:09:11 +0100 mod_smacks: Use new pre-session-close event instead of monkeypatch
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 15:09:11 +0100] rev 11979
mod_smacks: Use new pre-session-close event instead of monkeypatch Much cleaner.
(0) -10000 -3000 -1000 -300 -100 -10 +10 +100 +300 +1000 tip