1
0
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:
Sébastien Helleu
2018-02-19 21:27:08 +01:00
parent 5e3c55bacc
commit 20f9ca7d4a
19 changed files with 62 additions and 47 deletions
+6 -3
View File
@@ -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);