From b1b8abf46ab49af4c1a6f65bec3b9e78f6141c66 Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 25 Mar 2016 14:36:06 +0100 Subject: [PATCH] Added the protocol_key to the new options-output. --- evennia/commands/default/player.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/evennia/commands/default/player.py b/evennia/commands/default/player.py index 3046ac1e2..560da106b 100644 --- a/evennia/commands/default/player.py +++ b/evennia/commands/default/player.py @@ -372,20 +372,12 @@ class CmdOption(MuxPlayerCommand): """ Set an account option - @option - @option encoding [= encoding] - @option screenreader [= on|off] + Usage: + @option [name = value] - The text encoding is mostly an issue only if you want to use - non-ASCII characters (i.e. letters/symbols not found in English). - If you see that your characters look strange (or you get encoding - errors), you should use this command to set the server encoding to - be the same used in your client program. If given the empty string - (default), the custom encoding will be removed and only Evennia's - defaults will be used. + This command allows for viewing and setting client interface + settings. - The screenreader setting strips the text output for users using - screen readers. It strips based on settings.SCREENREADER_REGEX_STRIP. """ key = "@option" @@ -420,7 +412,7 @@ class CmdOption(MuxPlayerCommand): options.pop("TTYPE", None) options = "\n".join(" {w%s{n: %s" % (key, options[key]) for key in sorted(options)) - self.msg("{wClient settings:{n\n%s{n" % options) + self.msg("{wClient settings (%s):{n\n%s{n" % (self.session.protocol_key, options)) return if not self.rhs: