From 890843e394b4110bd1f7938c4fafef3d581c419e Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 5 Aug 2024 23:30:11 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/system.py b/modules/system.py index 15d1ba0..c12b7df 100644 --- a/modules/system.py +++ b/modules/system.py @@ -253,6 +253,8 @@ def get_node_location(number, nodeInt=1): return position def send_message(message, ch, nodeid=0, nodeInt=1): + if message == "": + return # if message over MESSAGE_CHUNK_SIZE characters, split it into multiple messages if len(message) > MESSAGE_CHUNK_SIZE: print (f"{log_timestamp()} System: Splitting Message, Message Length: {len(message)}")