summaryrefslogtreecommitdiff
path: root/src/plugins/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/python')
-rw-r--r--src/plugins/python/weechat-python.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c
index 8c89f84f7..f8cc8752b 100644
--- a/src/plugins/python/weechat-python.c
+++ b/src/plugins/python/weechat-python.c
@@ -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);