From 121ce4fda77055308c922834187d96434900f850 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 20 Dec 2021 00:06:47 +0100 Subject: mod_smacks: Fix typos --- plugins/mod_smacks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_smacks.lua') 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 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. -- cgit v1.2.3