From 0280f42f6ea2443757f0aa483322d60a5b2c0b6f Mon Sep 17 00:00:00 2001 From: Cerapter Date: Thu, 9 Aug 2018 22:19:39 +0200 Subject: [PATCH] PMs now show ID (and IPID if you're a mod). --- server/commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/commands.py b/server/commands.py index efcfe38..b8a21b3 100644 --- a/server/commands.py +++ b/server/commands.py @@ -466,7 +466,10 @@ def ooc_cmd_pm(client, arg): if c.pm_mute: raise ClientError('This user muted all pm conversation') else: - c.send_host_message('PM from {} in {} ({}): {}'.format(client.name, client.area.name, client.get_char_name(), msg)) + if c.is_mod: + c.send_host_message('PM from {} (ID: {}, IPID: {}) in {} ({}): {}'.format(client.name, client.id, client.ipid, client.area.name, client.get_char_name(), msg)) + else: + c.send_host_message('PM from {} (ID: {}) in {} ({}): {}'.format(client.name, client.id, client.area.name, client.get_char_name(), msg)) client.send_host_message('PM sent to {}. Message: {}'.format(args[0], msg)) def ooc_cmd_mutepm(client, arg):