summaryrefslogtreecommitdiff
path: root/src/core/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commands.py')
-rw-r--r--src/core/commands.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/commands.py b/src/core/commands.py
index 0815a80e..1c728283 100644
--- a/src/core/commands.py
+++ b/src/core/commands.py
@@ -620,6 +620,15 @@ def command_set(self, arg):
self.call_for_resize()
self.information(*info)
+def command_toggle(self, arg):
+ """
+ /toggle <option>
+ shortcut for /set <option> toggle
+ """
+ arg = arg.split()
+ if arg and arg[0]:
+ self.command_set('%s toggle' % arg[0])
+
def command_server_cycle(self, arg=''):
"""
Do a /cycle on each room of the given server.