From e8f788f8cc71733a9cbf402b43088c76e328eb2e Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Wed, 18 Sep 2024 21:19:15 +0100 Subject: [PATCH] Fix runas without args --- app/modules/evaluation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/evaluation.py b/app/modules/evaluation.py index 3e1cdb7..fefd358 100644 --- a/app/modules/evaluation.py +++ b/app/modules/evaluation.py @@ -232,7 +232,7 @@ class EvalModule(niobot.Module): @niobot.is_owner() async def runas(self, ctx: niobot.Context, user: str, command: str, *args): """Run a command as another user.""" - if args is not None and args[0] == "%null%": + if args is not None and args[0] == "%null%" or args is None: args = tuple() event = ctx.event event.sender = user