From 938334e762ae92ba9d973e5e57e8d5edf94ab622 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Wed, 18 Sep 2024 21:22:22 +0100 Subject: [PATCH] uh oh --- app/modules/evaluation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/evaluation.py b/app/modules/evaluation.py index efdf5aa..3457bfc 100644 --- a/app/modules/evaluation.py +++ b/app/modules/evaluation.py @@ -232,9 +232,9 @@ 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%" or args is None: + if args is not None and args[0] in ["%null%", None] or args is None: args = tuple() - + if args: args = map(str, args) event = ctx.event