소스 검색

commands case insensitive

Eren Yilmaz 6 년 전
부모
커밋
11e588da45
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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: