summaryrefslogtreecommitdiff
path: root/src/plugins/ruby/weechat-ruby.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-02-19 21:27:08 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-02-19 21:27:08 +0100
commit20f9ca7d4acf7629a9d8e884d99054f55bae76d7 (patch)
tree03265139ce7496a79ab9b6a4e66b6d7a61a05d03 /src/plugins/ruby/weechat-ruby.c
parent5e3c55baccd4a153a7a24b7e99db1c15049c6a34 (diff)
downloadweechat-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.c9
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);