mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Made sure to allow setting the option even though the client does not report it. Might help with #1218 ... maybe.
This commit is contained in:
parent
865ab131bb
commit
d9e305702f
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue