From e3faf676cdde68b1381ceae0ebfe9b475d04f030 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 23 Aug 2024 22:24:04 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/system.py b/modules/system.py index b9a1a86..e5b9001 100644 --- a/modules/system.py +++ b/modules/system.py @@ -416,7 +416,7 @@ def send_message(message, ch, nodeid=0, nodeInt=1): for word in split_message: if len(line + word) < MESSAGE_CHUNK_SIZE: - if 'NEWLINE' in word or '\n' in word or '\r' in word or 'NEWLINE ' in word: + if 'NEWLINE' in word or '\n' in word or '\r' in word: # chunk by newline if it exists message_list.append(line) line = '' @@ -427,6 +427,7 @@ def send_message(message, ch, nodeid=0, nodeInt=1): line = word + ' ' message_list.append(line) # needed add contents of the last 'line' into the list + message_list = [m.replace('NEWLINE', '') for m in message_list] for m in message_list: if nodeid == 0: