summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/guile/weechat-guile.c9
-rw-r--r--src/plugins/lua/weechat-lua.c9
-rw-r--r--src/plugins/perl/weechat-perl.c9
-rw-r--r--src/plugins/python/weechat-python.c9
-rw-r--r--src/plugins/ruby/weechat-ruby.c9
5 files changed, 30 insertions, 15 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c
index 304fe906b..bc5c39d96 100644
--- a/src/plugins/guile/weechat-guile.c
+++ b/src/plugins/guile/weechat-guile.c
@@ -162,9 +162,12 @@ weechat_guile_output_flush ()
else
{
/* script (no eval mode) */
- weechat_printf (NULL,
- weechat_gettext ("%s: stdout/stderr: %s"),
- GUILE_PLUGIN_NAME, *guile_buffer_output);
+ weechat_printf (
+ NULL,
+ weechat_gettext ("%s: stdout/stderr (%s): %s"),
+ GUILE_PLUGIN_NAME,
+ (guile_current_script) ? guile_current_script->name : "?",
+ *guile_buffer_output);
}
weechat_string_dyn_copy (guile_buffer_output, NULL);
diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c
index 1fe13133f..7229551b4 100644
--- a/src/plugins/lua/weechat-lua.c
+++ b/src/plugins/lua/weechat-lua.c
@@ -234,9 +234,12 @@ weechat_lua_output_flush ()
else
{
/* script (no eval mode) */
- weechat_printf (NULL,
- weechat_gettext ("%s: stdout/stderr: %s"),
- LUA_PLUGIN_NAME, *lua_buffer_output);
+ weechat_printf (
+ NULL,
+ weechat_gettext ("%s: stdout/stderr (%s): %s"),
+ LUA_PLUGIN_NAME,
+ (lua_current_script) ? lua_current_script->name : "?",
+ *lua_buffer_output);
}
weechat_string_dyn_copy (lua_buffer_output, NULL);
diff --git a/src/plugins/perl/weechat-perl.c b/src/plugins/perl/weechat-perl.c
index e5b702651..4b8bb6116 100644
--- a/src/plugins/perl/weechat-perl.c
+++ b/src/plugins/perl/weechat-perl.c
@@ -270,9 +270,12 @@ weechat_perl_output_flush ()
else
{
/* script (no eval mode) */
- weechat_printf (NULL,
- weechat_gettext ("%s: stdout/stderr: %s"),
- PERL_PLUGIN_NAME, *perl_buffer_output);
+ weechat_printf (
+ NULL,
+ weechat_gettext ("%s: stdout/stderr (%s): %s"),
+ PERL_PLUGIN_NAME,
+ (perl_current_script) ? perl_current_script->name : "?",
+ *perl_buffer_output);
}
weechat_string_dyn_copy (perl_buffer_output, NULL);
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);
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);