Quellcode durchsuchen

commands case insensitive

Eren Yilmaz vor 6 Jahren
Ursprung
Commit
11e588da45
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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: