diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-20 00:06:47 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-20 00:06:47 +0100 |
commit | 121ce4fda77055308c922834187d96434900f850 (patch) | |
tree | 1d2a2e72a9090d12e6cca37f63f837998ad19235 /plugins/mod_smacks.lua | |
parent | 1a089b68ec3044a00a06dcbb3ead98c6d1dd598b (diff) | |
download | prosody-121ce4fda77055308c922834187d96434900f850.tar.gz prosody-121ce4fda77055308c922834187d96434900f850.zip |
mod_smacks: Fix typos
Diffstat (limited to 'plugins/mod_smacks.lua')
-rw-r--r-- | plugins/mod_smacks.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index caccb38a..307d5771 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -116,7 +116,7 @@ local function should_ack(session, force) if session.state == "inactive" then max_unacked = max_inactive_unacked_stanzas; end - -- this check of last_requested_h prevents ack-loops if missbehaving clients report wrong + -- this check of last_requested_h prevents ack-loops if misbehaving clients report wrong -- stanza counts. it is set when an <r> is really sent (e.g. inside timer), preventing any -- further requests until a higher h-value would be expected. return queue:count_unacked() > max_unacked and expected_h ~= session.last_requested_h; @@ -635,7 +635,7 @@ module:hook_global("server-stopping", function(event) return end local reason = event.reason; - -- Close smacks-enaled sessions ourselves instead of letting mod_c2s close + -- Close smacks-enabled sessions ourselves instead of letting mod_c2s close -- it, which invalidates the smacks session. This allows preserving the -- counter value, so it can be communicated to the client when it tries to -- resume the lost session after a restart. |