Show command messages to moderators

This commit is contained in:
Ben 2020-05-17 03:26:13 +01:00
parent fbe8ba5eb2
commit c67e7cc018

View File

@ -36,6 +36,7 @@ async def handle_send_message(p, penguin_id: int, message: str):
return
if has_command_prefix(p.server.config.command_prefix, message):
await p.room.send_xt('mm', message, p.id, f=lambda px: px.moderator)
await invoke_command_string(p.server.commands, p, message)
else:
await p.room.send_xt('sm', p.id, message)