This commit is contained in:
SpudGunMan
2024-08-12 11:40:55 -07:00
parent 4fa114a3f2
commit efdd5fab66
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def auto_response(message, snr, rssi, hop, message_from_id, channel_number, devi
}
cmds = [] # list to hold the commands found in the message
for key in command_handler:
if key in message_lower:
if key in message_lower.split(' '):
cmds.append({'cmd': key, 'index': message_lower.index(key)})
if len(cmds) > 0:
+1 -1
View File
@@ -27,7 +27,7 @@ def auto_response(message, snr, rssi, hop, message_from_id, channel_number, devi
}
cmds = [] # list to hold the commands found in the message
for key in command_handler:
if key in message_lower:
if key in message_lower.split(' '):
cmds.append({'cmd': key, 'index': message_lower.index(key)})
if len(cmds) > 0: