From: Christian Heller Date: Wed, 11 Mar 2015 20:52:29 +0000 (+0100) Subject: Improve input validation in command_worldactive(). X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/%7Broute%7D?a=commitdiff_plain;h=9936d394bf98932db7fa601edcd53e899933e3f8;p=plomrogue Improve input validation in command_worldactive(). --- diff --git a/roguelike-server b/roguelike-server index 10fbd36..d68b4ff 100755 --- a/roguelike-server +++ b/roguelike-server @@ -1370,7 +1370,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()