From 6abe73c1bcdd17672bb21a4cf5ccaea73c83f948 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 7 Oct 2025 13:54:32 -0700 Subject: [PATCH] Update mesh_bot.py ack --- mesh_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 8617770..eb95b02 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -962,8 +962,8 @@ def handle_messages(message, deviceID, channel_number, msg_history, publicChanne else: response = "" for msgH in msg_history: - # number of messages to return - if len(response.split("\n"))/2 >= storeFlimit: + # number of messages to return +1 for the header line + if len(response.split("\n")) >= storeFlimit + 1: break # if the message is for this deviceID and channel or publicChannel if msgH[4] == deviceID: