Fix runas without args
This commit is contained in:
parent
eb95a5ed37
commit
e8f788f8cc
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ class EvalModule(niobot.Module):
|
||||||
@niobot.is_owner()
|
@niobot.is_owner()
|
||||||
async def runas(self, ctx: niobot.Context, user: str, command: str, *args):
|
async def runas(self, ctx: niobot.Context, user: str, command: str, *args):
|
||||||
"""Run a command as another user."""
|
"""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()
|
args = tuple()
|
||||||
event = ctx.event
|
event = ctx.event
|
||||||
event.sender = user
|
event.sender = user
|
||||||
|
|
Loading…
Reference in a new issue