From 9355c867edc8f894c6e2936eb066f828668168e6 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 11 Mar 2014 08:24:07 +0100 Subject: [PATCH] exec: add tag "exec_rc" for line with command return code, remove empty line displayed before --- src/plugins/exec/exec.c | 16 ++++++++-------- 1 file 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); } }