Browse Source

Force lowercase gamedirs. Engine doesn't care about gamedir case, so should do master server

pull/4/head
Alibek Omarov 6 years ago
parent
commit
5aa6d9a644
  1. 2
      pymaster.py
  2. 2
      server_entry.py

2
pymaster.py

@ -82,7 +82,7 @@ class PyMaster:
try: try:
key = split[i + 1] key = split[i + 1]
if( split[i] == 'gamedir' ): if( split[i] == 'gamedir' ):
gamedir = key gamedir = key.lower() # keep gamedir in lowercase
elif( split[i] == 'nat' ): elif( split[i] == 'nat' ):
nat = int(key) nat = int(key)
elif( split[i] == 'clver' ): elif( split[i] == 'clver' ):

2
server_entry.py

@ -28,7 +28,7 @@ class ServerEntry:
if( split[i] == 'challenge' ): if( split[i] == 'challenge' ):
self.challenge2 = int(key) self.challenge2 = int(key)
elif( split[i] == 'gamedir' ): elif( split[i] == 'gamedir' ):
self.gamedir = key self.gamedir = key.lower() # keep gamedir lowercase
elif( split[i] == 'protocol' ): elif( split[i] == 'protocol' ):
self.protocol = int(key) self.protocol = int(key)
elif( split[i] == 'players' ): elif( split[i] == 'players' ):

Loading…
Cancel
Save