aboutsummaryrefslogtreecommitdiff
path: root/server/aoprotocol.py
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-08-12 00:12:09 +0200
committerCerapter <cerap@protonmail.com>2018-08-12 00:12:09 +0200
commit3759131a8f0c0d65e14fdda9748de300dc23670d (patch)
tree0ad857d199001d3837ab9b5d0b7af4f3189833d1 /server/aoprotocol.py
parentc22606b5a70d8afa845e6f274521a89cd240a18e (diff)
Area numbers replaced by area abbreviations.
Diffstat (limited to 'server/aoprotocol.py')
-rw-r--r--server/aoprotocol.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py
index 877b6172..9bddb0a5 100644
--- a/server/aoprotocol.py
+++ b/server/aoprotocol.py
@@ -603,15 +603,13 @@ class AOProtocol(asyncio.Protocol):
current_time = strftime("%H:%M", localtime())
if len(args) < 1:
- self.server.send_all_cmd_pred('ZZ', '[{}] {} ({}) in {} ({}) without reason (not using the Case Café client?)'
- .format(current_time, self.client.get_char_name(), self.client.get_ip(), self.client.area.name,
- self.client.area.id), pred=lambda c: c.is_mod)
+ self.server.send_all_cmd_pred('ZZ', '[{}] {} ({}) in {} without reason (not using the Case Café client?)'
+ .format(current_time, self.client.get_char_name(), self.client.get_ip(), self.client.area.name), 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()))
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][:100]), pred=lambda c: c.is_mod)
+ 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, 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]))