From 000f3c91766eb86be62730388c43fbdeba3a22ce Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Thu, 31 Aug 2023 10:48:41 +0200 Subject: [PATCH] Small fix from #10 --- organizers_bot/ctfnote.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/organizers_bot/ctfnote.py b/organizers_bot/ctfnote.py index cb4bd07..434ccbd 100644 --- a/organizers_bot/ctfnote.py +++ b/organizers_bot/ctfnote.py @@ -560,6 +560,9 @@ async def update_flag(ctx: discord_slash.SlashContext, flag: str): Updates the flag on ctfnote. To unset, simply set `flag` to the empty string. Handles the case where the channel name was marked as solved as well. """ + if not enabled: + return + current_ctf = await refresh_ctf(ctx) if current_ctf is None: return -- 2.45.2