summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-11 08:24:07 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-11 17:49:49 +0100
commit9355c867edc8f894c6e2936eb066f828668168e6 (patch)
treed545028c337510850fc1754a86f4bd959aff6795 /src
parent97254780d655dd29b4093e52c6930aecaecca2eb (diff)
downloadweechat-9355c867edc8f894c6e2936eb066f828668168e6.zip
exec: add tag "exec_rc" for line with command return code, remove empty line displayed before
Diffstat (limited to 'src')
-rw-r--r--src/plugins/exec/exec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c
index bbdb33965..5758485f3 100644
--- a/src/plugins/exec/exec.c
+++ b/src/plugins/exec/exec.c
@@ -246,19 +246,19 @@ exec_end_command (struct t_exec_cmd *exec_cmd, int return_code)
/* display return code (only if output is NOT sent to buffer) */
if (!exec_cmd->output_to_buffer)
{
- weechat_printf (ptr_buffer, "");
if (return_code >= 0)
{
- weechat_printf (ptr_buffer, "%s: end of command \"%s\" (rc=%d)",
- EXEC_PLUGIN_NAME, exec_cmd->command,
- return_code);
+ weechat_printf_tags (ptr_buffer, "exec_rc",
+ "%s: end of command \"%s\" (rc=%d)",
+ EXEC_PLUGIN_NAME, exec_cmd->command,
+ return_code);
}
else
{
- weechat_printf (ptr_buffer,
- _("%s%s: unexpected end of command \"%s\""),
- weechat_prefix ("error"), EXEC_PLUGIN_NAME,
- exec_cmd->command);
+ weechat_printf_tags (ptr_buffer, "exec_rc",
+ _("%s%s: unexpected end of command \"%s\""),
+ weechat_prefix ("error"), EXEC_PLUGIN_NAME,
+ exec_cmd->command);
}
}