home · contact · privacy
Improve input validation in command_worldactive().
authorChristian Heller <c.heller@plomlompom.de>
Tue, 1 Sep 2015 01:06:12 +0000 (03:06 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 1 Sep 2015 01:06:12 +0000 (03:06 +0200)
roguelike-server

index 9361fb8bc8eed940d896ea86977cac3bc31b1162..0b9af475806fee19e756484cbc064b3bd29ce500 100755 (executable)
@@ -1290,7 +1290,7 @@ def command_worldactive(worldactive_string):
     map. On activation, rebuild all Things' FOVs, and the player's map memory.
     """
     val = integer_test(worldactive_string, 0, 1)
-    if val:
+    if None != val:
         if 0 != world_db["WORLD_ACTIVE"]:
             if 0 == val:
                 set_world_inactive()