From e2be3c20b769197844b7e50b3112995c8fefc33c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 13 Dec 2024 10:30:18 -0800 Subject: [PATCH] =?UTF-8?q?enhance=F0=9F=8F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mesh_bot.py | 2 +- pong_bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index b830131..bcecf46 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -209,7 +209,7 @@ def handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM, chann msg = "🔊AutoPing via DM only⛔️" # if not a DM add the username to the beginning of msg - if not isDM: + if not useDMForResponse and not isDM: msg = get_name_from_number(message_from_id) + msg return msg diff --git a/pong_bot.py b/pong_bot.py index a603faa..682ff16 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -127,7 +127,7 @@ def handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM, chann msg = "🔊AutoPing via DM only⛔️" # if not a DM add the username to the beginning of msg - if not isDM: + if not useDMForResponse and not isDM: msg = get_name_from_number(message_from_id) + msg return msg