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/ruby/weechat-ruby.c | |
parent | 5e3c55baccd4a153a7a24b7e99db1c15049c6a34 (diff) | |
download | weechat-20f9ca7d4acf7629a9d8e884d99054f55bae76d7.zip |
scripts: display the script name in stdout/stderr output from scripts
Diffstat (limited to 'src/plugins/ruby/weechat-ruby.c')
-rw-r--r-- | src/plugins/ruby/weechat-ruby.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c index a5bc4d0de..d593ad79e 100644 --- a/src/plugins/ruby/weechat-ruby.c +++ b/src/plugins/ruby/weechat-ruby.c @@ -406,9 +406,12 @@ weechat_ruby_output_flush () else { /* script (no eval mode) */ - weechat_printf (NULL, - weechat_gettext ("%s: stdout/stderr: %s"), - RUBY_PLUGIN_NAME, *ruby_buffer_output); + weechat_printf ( + NULL, + weechat_gettext ("%s: stdout/stderr (%s): %s"), + RUBY_PLUGIN_NAME, + (ruby_current_script) ? ruby_current_script->name : "?", + *ruby_buffer_output); } weechat_string_dyn_copy (ruby_buffer_output, NULL); |