mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
scripts: display the script name in stdout/stderr output from scripts
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user