From af27e1a2536fae8d608236bcb931823ff416c725 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sun, 27 Jun 2021 16:22:03 -0400 Subject: [PATCH] fixes #248 --- the_prestige.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/the_prestige.py b/the_prestige.py index bd5dd16..01c41df 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -1623,7 +1623,10 @@ async def on_message(msg): flags.append((flag.split(" ")[0][0].lower(), flag.split(" ",1)[1].strip())) except IndexError: flags.append((flag.split(" ")[0][0].lower(), None)) - await comm.execute(msg, send_text, flags) + + if comm.isauthorized(msg.author): #only execute command if authorized + await comm.execute(msg, send_text, flags) + except StopIteration: await msg.channel.send("Can't find that command, boss; try checking the list with `m;help`.") except CommandError as ce: