Changed to properly exit when not giving a rhs to the options command
This commit is contained in:
parent
8011d42321
commit
c1d8432630
1 changed files with 3 additions and 2 deletions
|
|
@ -373,8 +373,8 @@ class CmdOption(MuxPlayerCommand):
|
||||||
Set an account option
|
Set an account option
|
||||||
|
|
||||||
@option
|
@option
|
||||||
@option encoding = [encoding]
|
@option encoding [= encoding]
|
||||||
@option screenreader = on|off
|
@option screenreader [= on|off]
|
||||||
|
|
||||||
The text encoding is mostly an issue only if you want to use
|
The text encoding is mostly an issue only if you want to use
|
||||||
non-ASCII characters (i.e. letters/symbols not found in English).
|
non-ASCII characters (i.e. letters/symbols not found in English).
|
||||||
|
|
@ -411,6 +411,7 @@ class CmdOption(MuxPlayerCommand):
|
||||||
|
|
||||||
if not self.rhs:
|
if not self.rhs:
|
||||||
self.caller.msg("Usage: @option [name = [value]]")
|
self.caller.msg("Usage: @option [name = [value]]")
|
||||||
|
return
|
||||||
|
|
||||||
if self.lhs == "encoding":
|
if self.lhs == "encoding":
|
||||||
# change encoding
|
# change encoding
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue