|
|
@ -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' ): |
|
|
@ -80,4 +80,4 @@ class ServerEntry: |
|
|
|
|
|
|
|
|
|
|
|
# Remove server after this time. |
|
|
|
# Remove server after this time. |
|
|
|
# This maybe not instant |
|
|
|
# This maybe not instant |
|
|
|
self.die = time() + 600.0 |
|
|
|
self.die = time() + 600.0 |
|
|
|