CmdOption session option msg to session only
Since session options can be different between sessions, only show output from option commands to the session using them.
This commit is contained in:
parent
684393f7f0
commit
adf215e855
1 changed files with 4 additions and 4 deletions
|
|
@ -406,11 +406,11 @@ class CmdOption(MuxPlayerCommand):
|
||||||
sencodings = settings.ENCODINGS
|
sencodings = settings.ENCODINGS
|
||||||
string += " Custom: %s\n Server: %s" % (pencoding, ", ".join(sencodings))
|
string += " Custom: %s\n Server: %s" % (pencoding, ", ".join(sencodings))
|
||||||
string += "\n{wScreen Reader mode:{n %s" % self.session.screenreader
|
string += "\n{wScreen Reader mode:{n %s" % self.session.screenreader
|
||||||
self.caller.msg(string)
|
self.msg(string)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not self.rhs:
|
if not self.rhs:
|
||||||
self.caller.msg("Usage: @option [name = [value]]")
|
self.msg("Usage: @option [name = [value]]")
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.lhs == "encoding":
|
if self.lhs == "encoding":
|
||||||
|
|
@ -424,13 +424,13 @@ class CmdOption(MuxPlayerCommand):
|
||||||
else:
|
else:
|
||||||
self.session.encoding = new_encoding
|
self.session.encoding = new_encoding
|
||||||
string = "Encoding was changed from '|w%s|n' to '|w%s|n'." % (old_encoding, new_encoding)
|
string = "Encoding was changed from '|w%s|n' to '|w%s|n'." % (old_encoding, new_encoding)
|
||||||
self.caller.msg(string)
|
self.msg(string)
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.lhs == "screenreader":
|
if self.lhs == "screenreader":
|
||||||
onoff = self.rhs.lower() == "on"
|
onoff = self.rhs.lower() == "on"
|
||||||
self.session.screenreader = onoff
|
self.session.screenreader = onoff
|
||||||
self.caller.msg("Screen reader mode was turned {w%s{n." % ("on" if onoff else "off"))
|
self.msg("Screen reader mode was turned {w%s{n." % ("on" if onoff else "off"))
|
||||||
|
|
||||||
|
|
||||||
class CmdPassword(MuxPlayerCommand):
|
class CmdPassword(MuxPlayerCommand):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue