summaryrefslogtreecommitdiff
path: root/src/plugins/ruby/weechat-ruby.c
diff options
context:
space:
mode:
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);