Explorar el Código

commands case insensitive

Eren Yilmaz hace 6 años
padre
commit
11e588da45
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      run_client.py

+ 1 - 0
run_client.py

@@ -79,6 +79,7 @@ def one_command():
         # noinspection PySimplifyBooleanCheck
         if cmd == []:
             continue
+        cmd[0] = cmd[0].lower()
         if cmd[0] not in allowed_commands:
             print('Invalid command:', cmd[0])
         else: