From c68c9daf27294698c6b4ae249f1ba7d817f10f89 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Tue, 18 Sep 2018 21:17:57 +0200 Subject: [PATCH] CMs now get `/rollp` results + KK and KB package. --- server/commands.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/commands.py b/server/commands.py index 992d0c7..5f0128a 100644 --- a/server/commands.py +++ b/server/commands.py @@ -185,11 +185,9 @@ def ooc_cmd_rollp(client, arg): roll = '(' + roll + ')' client.send_host_message('{} rolled {} out of {}.'.format(client.get_char_name(), roll, val[0])) - for c in client.area.clients: - if c.is_cm: - c.send_host_message('{} secretly rolled {} out of {}.'.format(client.get_char_name(), roll, val[0])) - else: - c.send_host_message('{} rolled in secret.'.format(client.get_char_name())) + client.area.send_host_message('{} rolled in secret.'.format(client.get_char_name())) + for c in client.area.owners: + c.send_host_message('[{}]{} secretly rolled {} out of {}.'.format(client.area.abbreviation, client.get_char_name(), roll, val[0])) logger.log_server( '[{}][{}]Used /rollp and got {} out of {}.'.format(client.area.abbreviation, client.get_char_name(), roll, val[0]), client) @@ -371,6 +369,7 @@ def ooc_cmd_kick(client, arg): logger.log_server('Kicked {} [{}]({}).'.format(c.get_char_name(), c.id, c.ipid), client) logger.log_mod('Kicked {} [{}]({}).'.format(c.get_char_name(), c.id, c.ipid), client) client.send_host_message("{} was kicked.".format(c.get_char_name())) + c.send_command('KK', c.char_id) c.disconnect() else: client.send_host_message("No targets with the IPID {} were found.".format(ipid)) @@ -395,6 +394,7 @@ def ooc_cmd_ban(client, arg): targets = client.server.client_manager.get_targets(client, TargetType.IPID, ipid, False) if targets: for c in targets: + c.send_command('KB', c.char_id) c.disconnect() client.send_host_message('{} clients was kicked.'.format(len(targets))) client.send_host_message('{} was banned.'.format(ipid))