From ca7114b058d103cde2136bd8ba894171e9595d9c Mon Sep 17 00:00:00 2001 From: Russell Schmidt Date: Wed, 4 Jun 2025 11:55:30 -0500 Subject: [PATCH] Allow DMs to numeric short names --- mesh_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 55ac24d..75a9618 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -804,7 +804,7 @@ def handle_bbspost(message, message_from_id, deviceID): toNode = int(toNode.strip("!"),16) except ValueError as e: toNode = 0 - elif toNode.isalpha() or not toNode.isnumeric(): + elif toNode.isalpha() or not toNode.isnumeric() or len(toNode) < 5: # try short name toNode = get_num_from_short_name(toNode, deviceID)