aboutsummaryrefslogtreecommitdiff
path: root/server/commands.py
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-09-01 22:27:05 +0200
committerCerapter <cerap@protonmail.com>2018-09-01 22:27:05 +0200
commit7d207208dc94a47bdce9fd1ff682372eeb914b32 (patch)
treef8523549cd3a8b42d0ee1d713fadecafc59084c8 /server/commands.py
parent69c58694ed033ed7a5fac44e2c701341210a9498 (diff)
Unmute fix, `/getarea` prettying.
Diffstat (limited to 'server/commands.py')
-rw-r--r--server/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/commands.py b/server/commands.py
index f951ca68..a0dd295d 100644
--- a/server/commands.py
+++ b/server/commands.py
@@ -809,10 +809,10 @@ def ooc_cmd_ooc_unmute(client, arg):
if not client.is_mod:
raise ClientError('You must be authorized to do that.')
if len(arg) == 0:
- raise ArgumentError('You must specify a target. Use /ooc_mute <OOC-name>.')
- targets = client.server.client_manager.get_targets(client, TargetType.ID, arg, False)
+ raise ArgumentError('You must specify a target. Use /ooc_unmute <OOC-name>.')
+ targets = client.server.client_manager.get_ooc_muted_clients()
if not targets:
- raise ArgumentError('Target not found. Use /ooc_mute <OOC-name>.')
+ raise ArgumentError('Targets not found. Use /ooc_unmute <OOC-name>.')
for target in targets:
target.is_ooc_muted = False
client.send_host_message('Unmuted {} existing client(s).'.format(len(targets)))