From 0c1c587bc764c17d5d3258a0a6ea0cd2a40412f6 Mon Sep 17 00:00:00 2001 From: Nestpebble Date: Fri, 27 Sep 2024 01:26:01 +0100 Subject: [PATCH] strip ! from tonode, cos its copied by default on the android app. --- mesh_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 81e2ac1..9301016 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -478,7 +478,7 @@ def handle_bbspost(message, message_from_id, deviceID): return "example: bbspost $subject #message" elif "@" in message and not "example:" in message: toNode = message.split("@")[1].split("#")[0] - toNode = toNode.rstrip() + toNode = toNode.rstrip().strip("!") if toNode.isalpha() or not toNode.isnumeric(): toNode = get_num_from_short_name(toNode, deviceID) if toNode == 0: