mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-05-16 21:50:20 +00:00
fix(python): decode the console input to str in _on_say_command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user