1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

lua: fix crash with print when the value to print is not a string

This commit is contained in:
wfrsk
2023-04-08 02:44:07 +02:00
committed by Sébastien Helleu
parent 127c8e0eb6
commit cd740fc18b
+1 -1
View File
@@ -511,7 +511,7 @@ weechat_lua_load (const char *filename, const char *code)
FILE *fp;
char *lua_redirect_output = {
"function weechat_output_string(str)\n"
" weechat.__output__(str)\n"
" weechat.__output__(tostring(str))\n"
"end\n"
"weechat_outputs = {\n"
" write = weechat_output_string\n"