From c1d843263059d0372aacdbdae40c814a37122a5f Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 6 Feb 2016 12:57:26 +0100 Subject: [PATCH] Changed to properly exit when not giving a rhs to the options command --- evennia/commands/default/player.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/player.py b/evennia/commands/default/player.py index 734bc45c3d..02aa906fb2 100644 --- a/evennia/commands/default/player.py +++ b/evennia/commands/default/player.py @@ -373,8 +373,8 @@ class CmdOption(MuxPlayerCommand): Set an account option @option - @option encoding = [encoding] - @option screenreader = on|off + @option encoding [= encoding] + @option screenreader [= on|off] The text encoding is mostly an issue only if you want to use non-ASCII characters (i.e. letters/symbols not found in English). @@ -411,6 +411,7 @@ class CmdOption(MuxPlayerCommand): if not self.rhs: self.caller.msg("Usage: @option [name = [value]]") + return if self.lhs == "encoding": # change encoding