Merge pull request #80 from floogal/patch-1

Fix banned accounts not being removed
This commit is contained in:
AllinolCP 2021-10-28 17:25:04 +07:00 committed by GitHub
commit f53de2546c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,5 +146,6 @@ async def moderator_ban(p, penguin_id, hours=24, comment='', message=''):
if penguin_id in p.server.penguins_by_id: if penguin_id in p.server.penguins_by_id:
if player.is_vanilla_client: if player.is_vanilla_client:
await player.send_xt('ban', 612, 2, hours, comment) await player.send_xt('ban', 612, 2, hours, comment)
await player.close()
else: else:
await player.send_error_and_disconnect(610, comment) await player.send_error_and_disconnect(610, comment)