From: Christian Heller Date: Tue, 1 Sep 2015 01:06:12 +0000 (+0200) Subject: Improve input validation in command_worldactive(). X-Git-Tag: tce~300 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/balance?a=commitdiff_plain;h=090259ce1d144461c33db6a622919b182dab6888;p=plomrogue Improve input validation in command_worldactive(). --- 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()