From 01d48fd935a36d9d948141280de502f34761dfde Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 23:16:45 -0700 Subject: [PATCH] Update mesh-bot.py --- mesh-bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh-bot.py b/mesh-bot.py index 3e5dce2..9e95674 100644 --- a/mesh-bot.py +++ b/mesh-bot.py @@ -241,11 +241,11 @@ def get_node_location(number): def send_message(message,ch,nodeid): if nodeid == 0: #Send to channel - print (f"{log_timestamp()} System: Sending: {message.strip()} To: Channel:{ch}") + print (f"{log_timestamp()} System: Sending: {message.replace("\n", "")} To: Channel:{ch}") interface.sendText(text=message,channelIndex=ch) else: #Send to DM - print (f"{log_timestamp()} System: Sending: {message.strip()} To: {get_name_from_number(nodeid)}") + print (f"{log_timestamp()} System: Sending: {message.replace("\n", "")} To: {get_name_from_number(nodeid)}") interface.sendText(text=message,channelIndex=ch,destinationId=nodeid) def exit_handler(signum, frame):