PMs now show ID (and IPID if you're a mod).

This commit is contained in:
Cerapter 2018-08-09 22:19:39 +02:00
parent 0f2665aabe
commit 0280f42f6e

View File

@ -466,7 +466,10 @@ def ooc_cmd_pm(client, arg):
if c.pm_mute: if c.pm_mute:
raise ClientError('This user muted all pm conversation') raise ClientError('This user muted all pm conversation')
else: 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)) client.send_host_message('PM sent to {}. Message: {}'.format(args[0], msg))
def ooc_cmd_mutepm(client, arg): def ooc_cmd_mutepm(client, arg):