1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2025-02-16 13:24:06 +00:00

ep6 il ritorno del bugfix

This commit is contained in:
Steffo 2016-05-26 10:12:14 +00:00
parent f194bc498c
commit 3596281535

View file

@ -416,7 +416,7 @@ def status(bot, update):
"""Visualizza lo stato della partita."""
game = findgamebyid(update.message.chat['id'])
if game is not None:
text = s.status_header.format(name=game.groupid, admin=game.adminid, phase=game.phase)
text = s.status_header.format(name=game.name, admin=game.adminid, phase=game.phase)
game.updatevotes()
# Aggiungi l'elenco dei giocatori
for player in game.players:
@ -489,7 +489,7 @@ def power(bot, update):
if game is None:
game = findgamebyid(int(cmd[1]))
if game is not None:
player = game.findplayerbyid(int(update.message.from_user['id'])
player = game.findplayerbyid(int(update.message.from_user['id']))
if player is not None:
if player.alive:
player.role.power(bot, game, player, cmd[2])