mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
Update moderation.py
This commit is contained in:
parent
6b12be1c15
commit
6688a29453
@ -111,6 +111,7 @@ async def cheat_ban(p, penguin_id, hours=24, comment=''):
|
|||||||
|
|
||||||
if penguin_id in p.server.penguins_by_id:
|
if penguin_id in p.server.penguins_by_id:
|
||||||
await player.send_error_and_disconnect(611, comment)
|
await player.send_error_and_disconnect(611, comment)
|
||||||
|
await player.close()
|
||||||
|
|
||||||
|
|
||||||
async def moderator_kick(p, penguin_id):
|
async def moderator_kick(p, penguin_id):
|
||||||
@ -148,3 +149,5 @@ async def moderator_ban(p, penguin_id, hours=24, comment='', message=''):
|
|||||||
await player.send_xt('ban', 612, 2, hours, comment)
|
await player.send_xt('ban', 612, 2, hours, comment)
|
||||||
else:
|
else:
|
||||||
await player.send_error_and_disconnect(610, comment)
|
await player.send_error_and_disconnect(610, comment)
|
||||||
|
|
||||||
|
await player.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user