From 5aa6d9a6446b6dcc507f48d0d59e4eda55666dff Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 30 Dec 2018 14:43:52 +0300 Subject: [PATCH] Force lowercase gamedirs. Engine doesn't care about gamedir case, so should do master server --- pymaster.py | 2 +- server_entry.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pymaster.py b/pymaster.py index 7045c6a..beb281c 100755 --- a/pymaster.py +++ b/pymaster.py @@ -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' ): diff --git a/server_entry.py b/server_entry.py index 46a2209..d588748 100644 --- a/server_entry.py +++ b/server_entry.py @@ -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' ): @@ -80,4 +80,4 @@ class ServerEntry: # Remove server after this time. # This maybe not instant - self.die = time() + 600.0 \ No newline at end of file + self.die = time() + 600.0