diff options
| author | Cerapter <cerap@protonmail.com> | 2018-08-09 16:36:56 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-08-09 16:36:56 +0200 |
| commit | f9fd9a789af5587de40ee131ce709791ca81253b (patch) | |
| tree | 332e01204b575b432bf1b5f0ac97689bed0a368e | |
| parent | 885df58ec92abcde5e8aec60535e1a04d10a4e4a (diff) | |
Limit mod call reason limit to 100 on serverside, too.
| -rw-r--r-- | server/aoprotocol.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py index 1711ebaa..9b8822bb 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])) |
