From f9fd9a789af5587de40ee131ce709791ca81253b Mon Sep 17 00:00:00 2001 From: Cerapter Date: Thu, 9 Aug 2018 16:36:56 +0200 Subject: [PATCH] Limit mod call reason limit to 100 on serverside, too. --- server/aoprotocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/aoprotocol.py b/server/aoprotocol.py index 1711eba..9b8822b 100644 --- a/server/aoprotocol.py +++ b/server/aoprotocol.py @@ -603,7 +603,7 @@ class AOProtocol(asyncio.Protocol): else: self.server.send_all_cmd_pred('ZZ', '[{}] {} ({}) in {} ({}) with reason: {}' .format(current_time, self.client.get_char_name(), self.client.get_ip(), self.client.area.name, - self.client.area.id, args[0]), pred=lambda c: c.is_mod) + self.client.area.id, args[0][:100]), pred=lambda c: c.is_mod) self.client.set_mod_call_delay() logger.log_server('[{}][{}]{} called a moderator: {}.'.format(self.client.get_ip(), self.client.area.id, self.client.get_char_name(), args[0]))