# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1623319103 -7200
# Node ID b119dc4d8bc2ea62d1bdaa232ae4e271ac15327a
# Parent  12c1be0044c686193f8ebf8f9b4235f87148cc96
plugins.smacks: Don't warn about zero stanzas acked

It's only if the count somehow goes backwards that something is really
wrong. An ack for zero stanzas is fine and we don't need to do anything.

diff -r 12c1be0044c6 -r b119dc4d8bc2 plugins/smacks.lua
--- a/plugins/smacks.lua	Sun Jun 06 16:43:36 2021 +0200
+++ b/plugins/smacks.lua	Thu Jun 10 11:58:23 2021 +0200
@@ -80,7 +80,7 @@
 				end
 				stream:debug("Received ack: New ack: "..new_ack.." Last ack: "..last_ack.." Unacked stanzas now: "..#outgoing_queue.." (was "..old_unacked..")");
 				last_ack = new_ack;
-			else
+			elseif new_ack < last_ack then
 				stream:warn("Received bad ack for "..new_ack.." when last ack was "..last_ack);
 			end
 		elseif stanza.name == "enabled" then