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

2
server_entry.py

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

Loading…
Cancel
Save