This commit is contained in:
Nexus 2024-09-18 21:22:22 +01:00
parent 65c9308819
commit 938334e762

View file

@ -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%" or args is None:
if args is not None and args[0] in ["%null%", None] or args is None:
args = tuple()
if args: