1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-22 22:04:18 +00:00

Un if __debug__ in più fa sempre bene

This commit is contained in:
Steffo 2016-06-01 13:52:00 +02:00
parent b7fa715852
commit fbb74a4acb

View file

@ -660,6 +660,7 @@ def role(bot, update):
def kill(bot, update): def kill(bot, update):
"""Uccidi un giocatore in partita.""" """Uccidi un giocatore in partita."""
if __debug__:
game = findgamebyid(update.message.chat['id']) game = findgamebyid(update.message.chat['id'])
if game is not None and game.phase is 'Voting': if game is not None and game.phase is 'Voting':
if update.message.from_user['id'] == game.adminid: if update.message.from_user['id'] == game.adminid: