mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
Show command messages to moderators
This commit is contained in:
parent
fbe8ba5eb2
commit
c67e7cc018
@ -36,6 +36,7 @@ async def handle_send_message(p, penguin_id: int, message: str):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if has_command_prefix(p.server.config.command_prefix, message):
|
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)
|
await invoke_command_string(p.server.commands, p, message)
|
||||||
else:
|
else:
|
||||||
await p.room.send_xt('sm', p.id, message)
|
await p.room.send_xt('sm', p.id, message)
|
||||||
|
Loading…
Reference in New Issue
Block a user