From a5b35a816a4a52235aa5c56386193ebdf64619db Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 10 Mar 2015 05:25:51 +0100
Subject: [PATCH] Fix syntax bug.

---
 roguelike-server | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roguelike-server b/roguelike-server
index faea5aa..ee1fefc 100755
--- a/roguelike-server
+++ b/roguelike-server
@@ -526,7 +526,7 @@ def integer_test(val_string, min, max=None):
     """Return val_string if possible integer >= min and <= max, else None."""
     try:
         val = int(val_string)
-        if val < min or (if max is not None and val > max):
+        if val < min or (max is not None and val > max):
             raise ValueError
         return val
     except ValueError:
-- 
2.30.2