Skip to content

Commit 1ce226a

Browse files
committed
Let anyone use alias invoked eval commands
1 parent 529fa18 commit 1ce226a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ async def get_context(self, message, *, cls=commands.Context):
257257
ctx.invoked_with = invoker
258258
ctx.prefix = self.prefix # Sane prefix (No mentions)
259259
ctx.command = self.all_commands.get(invoker)
260-
261-
# if hasattr(ctx, '_alias_invoked'):
262-
# ctx.command.checks = None # Let anyone use the command.
260+
261+
if ctx.command is self.get_command('eval') and hasattr(ctx, '_alias_invoked'):
262+
ctx.command.checks = None # Let anyone use the command.
263263

264264
return ctx
265265

0 commit comments

Comments
 (0)