mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 20:36:38 +02:00
lua: fix crash with print when the value to print is not a string
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user