From 65c93088195a3e5d43a40e36389845dd68179741 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Wed, 18 Sep 2024 21:21:57 +0100 Subject: [PATCH] Force map to strings --- app/modules/evaluation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/modules/evaluation.py b/app/modules/evaluation.py index fefd358..efdf5aa 100644 --- a/app/modules/evaluation.py +++ b/app/modules/evaluation.py @@ -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