aboutsummaryrefslogtreecommitdiff
path: root/server/commands.py
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-08-17 02:12:29 +0200
committerCerapter <cerap@protonmail.com>2018-08-17 02:12:29 +0200
commit265b853337e6368afc2816a78a64a4d128f756e4 (patch)
tree4aaf84670018e6b6825bdeebd56058a3c7d60f1a /server/commands.py
parenteee682bf0d603b0afe9dc2e41bf971669cea225d (diff)
Removed HDID ban due to it not working.
Diffstat (limited to 'server/commands.py')
-rw-r--r--server/commands.py32
1 files changed, 1 insertions, 31 deletions
diff --git a/server/commands.py b/server/commands.py
index d1f145d3..a3c3ce8d 100644
--- a/server/commands.py
+++ b/server/commands.py
@@ -357,37 +357,7 @@ def ooc_cmd_unban(client, arg):
raise ClientError('You must specify ipid')
logger.log_server('Unbanned {}.'.format(arg), client)
client.send_host_message('Unbanned {}'.format(arg))
-
-def ooc_cmd_ban_hdid(client, arg):
- if not client.is_mod:
- raise ClientError('You must be authorized to do that.')
- try:
- hdid = int(arg.strip())
- except:
- raise ClientError('You must specify hdid')
- try:
- client.server.ban_manager.add_hdid_ban(hdid)
- except ServerError:
- raise
- if hdid != None:
- targets = client.server.client_manager.get_targets(client, TargetType.HDID, hdid, False)
- if targets:
- for c in targets:
- c.disconnect()
- client.send_host_message('{} clients was kicked.'.format(len(targets)))
- client.send_host_message('{} was banned.'.format(hdid))
- logger.log_server('Banned {}.'.format(hdid), client)
-
-def ooc_cmd_unban_hdid(client, arg):
- if not client.is_mod:
- raise ClientError('You must be authorized to do that.')
- try:
- client.server.ban_manager.remove_hdid_ban(int(arg.strip()))
- except:
- raise ClientError('You must specify hdid')
- logger.log_server('Unbanned {}.'.format(arg), client)
- client.send_host_message('Unbanned {}'.format(arg))
-
+
def ooc_cmd_play(client, arg):
if not client.is_mod:
raise ClientError('You must be authorized to do that.')