From 090259ce1d144461c33db6a622919b182dab6888 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 1 Sep 2015 03:06:12 +0200 Subject: [PATCH] Improve input validation in command_worldactive(). --- roguelike-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roguelike-server b/roguelike-server index 9361fb8..0b9af47 100755 --- a/roguelike-server +++ b/roguelike-server @@ -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() -- 2.30.2