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