From 354a8fc76f9e28df6b51d182cf6be04d3ea3ded7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 25 Jan 2019 15:41:26 +0100 Subject: [PATCH] dittatura --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index d7c8cafd..a477a99a 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -402,7 +402,7 @@ def on_callback_query(bot: Bot, update: Update): s(strings.MATCHMAKING.GAME_START[player.status], **match.format_dict())) 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, show_alert=True, text=strings.MATCHMAKING.ERRORS.NOT_ADMIN)