# HG changeset patch # User Kim Alvefur # Date 1639955207 -3600 # Node ID 2c13aaae35ac75c9aca54e3c6fb5de1def43af47 # Parent 061d516d8ac59503b1ca48adab00eaf4b2273e7f mod_smacks: Fix typos diff -r 061d516d8ac5 -r 2c13aaae35ac plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Mon Dec 20 00:04:32 2021 +0100 +++ b/plugins/mod_smacks.lua Mon Dec 20 00:06:47 2021 +0100 @@ -116,7 +116,7 @@ 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 @@ 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.