Force map to strings
This commit is contained in:
parent
e8f788f8cc
commit
65c9308819
1 changed files with 3 additions and 0 deletions
|
@ -234,6 +234,9 @@ class EvalModule(niobot.Module):
|
|||
"""Run a command as another user."""
|
||||
if args is not None and args[0] == "%null%" or args is None:
|
||||
args = tuple()
|
||||
|
||||
if args:
|
||||
args = map(str, args)
|
||||
event = ctx.event
|
||||
event.sender = user
|
||||
event.body = ctx.invoking_prefix + command
|
||||
|
|
Loading…
Reference in a new issue