From 23d0963c2d3bd32963a6dea664d5ab857adad1ca Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Sat, 9 May 2026 09:44:52 -0500 Subject: [PATCH] fix(python): decode the console input to str in _on_say_command --- plugins/python/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/python/python.py b/plugins/python/python.py index 90e162d6..da52d97e 100644 --- a/plugins/python/python.py +++ b/plugins/python/python.py @@ -320,9 +320,9 @@ def _on_say_command(word, word_eol, userdata): return 0 try: - python = _cstr(word_eol[1]) + python = __decode(_cstr(word_eol[1])) except Exception: - python = b'' + python = '' if not python: return 1