diff options
| author | Cerapter <cerap@protonmail.com> | 2018-08-09 22:19:39 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-08-09 22:19:39 +0200 |
| commit | 0280f42f6ea2443757f0aa483322d60a5b2c0b6f (patch) | |
| tree | f106753b7ae502f4e6573feeff5998fa12f7d902 /server/commands.py | |
| parent | 0f2665aabed04f0fe68b1104a0b5df05d0525d01 (diff) | |
PMs now show ID (and IPID if you're a mod).
Diffstat (limited to 'server/commands.py')
| -rw-r--r-- | server/commands.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/commands.py b/server/commands.py index efcfe383..b8a21b3f 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): |
