Force map to strings

This commit is contained in:
Nexus 2024-09-18 21:21:57 +01:00
parent e8f788f8cc
commit 65c9308819

View file

@ -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