From df944ed6ac0e758a1f596f9bd80fcb6bd7cc31aa Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sat, 3 Nov 2018 18:57:51 +0530 Subject: [PATCH] Disallow checking for quests/side quests in between adding them --- bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.py b/bot.py index ca9e4b5..e5995d9 100644 --- a/bot.py +++ b/bot.py @@ -232,6 +232,9 @@ def quest_handling(bot, update, db): text = update.message.text.lower().split("_") chat_id = update.message.chat_id player = questable.player(db, chat_id) + state = player.get_state() + if state["state"] in ["aq", "asq", "qd", "sqd", "qi", "sqi"]: + return message_handling(bot, update, db) if text[0] == "/q": quest(bot, update, player, text[1], "quest") elif text[0] == "/sq":