mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 03:46:39 +02:00
scripts: display the script name in stdout/stderr output from scripts
This commit is contained in:
@@ -381,9 +381,12 @@ weechat_python_output_flush ()
|
||||
else
|
||||
{
|
||||
/* script (no eval mode) */
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s: stdout/stderr: %s"),
|
||||
PYTHON_PLUGIN_NAME, *python_buffer_output);
|
||||
weechat_printf (
|
||||
NULL,
|
||||
weechat_gettext ("%s: stdout/stderr (%s): %s"),
|
||||
PYTHON_PLUGIN_NAME,
|
||||
(python_current_script) ? python_current_script->name : "?",
|
||||
*python_buffer_output);
|
||||
}
|
||||
|
||||
weechat_string_dyn_copy (python_buffer_output, NULL);
|
||||
|
||||
Reference in New Issue
Block a user