From d9e305702fcca18a5140a3ffe688ed72ff556876 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 18 Feb 2017 19:41:03 +0100 Subject: [PATCH] Made sure to allow setting the option even though the client does not report it. Might help with #1218 ... maybe. --- evennia/commands/default/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/commands/default/player.py b/evennia/commands/default/player.py index 03680efc04..b2d18b625a 100644 --- a/evennia/commands/default/player.py +++ b/evennia/commands/default/player.py @@ -549,7 +549,7 @@ class CmdOption(COMMAND_DEFAULT_CLASS): def update(name, val, validator): # helper: update property and report errors try: - old_val = flags[name] + old_val = flags.get(name, False) new_val = validator(val) flags[name] = new_val self.msg("Option |w%s|n was changed from '|w%s|n' to '|w%s|n'." % (name, old_val, new_val))