From: Christian Heller Date: Wed, 11 Mar 2015 13:44:26 +0000 (+0100) Subject: Ignore lowercase-starting (= player) commands when world is inactive. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/do_day?a=commitdiff_plain;h=ed564b0c471df71c9623316c7bfbf06f013e2030;p=plomrogue Ignore lowercase-starting (= player) commands when world is inactive. --- diff --git a/roguelike-server b/roguelike-server index 64ae118..741046a 100755 --- a/roguelike-server +++ b/roguelike-server @@ -124,6 +124,8 @@ def obey(command, prefix, replay=False, do_record=False): and len(tokens) == commands_db[tokens[0]][0] + 1: if commands_db[tokens[0]][1]: commands_db[tokens[0]][2](*tokens[1:]) + elif tokens[0][0].islower() and not world_db["WORLD_ACTIVE"]: + print("Ignoring lowercase-starting commands when world inactive.") elif replay: print("Due to replay mode, reading command as 'go on in record'.") line = io_db["file_record"].readline()