mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +02:00
scripts: display the script name in stdout/stderr output from scripts
This commit is contained in:
@@ -234,9 +234,12 @@ weechat_lua_output_flush ()
|
||||
else
|
||||
{
|
||||
/* script (no eval mode) */
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s: stdout/stderr: %s"),
|
||||
LUA_PLUGIN_NAME, *lua_buffer_output);
|
||||
weechat_printf (
|
||||
NULL,
|
||||
weechat_gettext ("%s: stdout/stderr (%s): %s"),
|
||||
LUA_PLUGIN_NAME,
|
||||
(lua_current_script) ? lua_current_script->name : "?",
|
||||
*lua_buffer_output);
|
||||
}
|
||||
|
||||
weechat_string_dyn_copy (lua_buffer_output, NULL);
|
||||
|
||||
Reference in New Issue
Block a user