diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-02-19 21:27:08 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-02-19 21:27:08 +0100 |
commit | 20f9ca7d4acf7629a9d8e884d99054f55bae76d7 (patch) | |
tree | 03265139ce7496a79ab9b6a4e66b6d7a61a05d03 /src/plugins/python | |
parent | 5e3c55baccd4a153a7a24b7e99db1c15049c6a34 (diff) | |
download | weechat-20f9ca7d4acf7629a9d8e884d99054f55bae76d7.zip |
scripts: display the script name in stdout/stderr output from scripts
Diffstat (limited to 'src/plugins/python')
-rw-r--r-- | src/plugins/python/weechat-python.c | 9 |
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); |