1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00

dittatura

This commit is contained in:
Steffo 2019-01-25 15:41:26 +01:00
parent 048c29b2f7
commit 354a8fc76f

View file

@ -402,7 +402,7 @@ def on_callback_query(bot: Bot, update: Update):
s(strings.MATCHMAKING.GAME_START[player.status], s(strings.MATCHMAKING.GAME_START[player.status],
**match.format_dict())) **match.format_dict()))
elif update.callback_query.data == "match_cancel": elif update.callback_query.data == "match_cancel":
if match.creator != user: if not (match.creator == user or match.creator_id == 25167391):
bot.answer_callback_query(update.callback_query.id, bot.answer_callback_query(update.callback_query.id,
show_alert=True, show_alert=True,
text=strings.MATCHMAKING.ERRORS.NOT_ADMIN) text=strings.MATCHMAKING.ERRORS.NOT_ADMIN)