summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-04-03 13:11:03 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-04-03 13:11:03 +0200
commit220682c1bc12404f981f3ca74ce349342c3e4b9c (patch)
treeb227b2863fd198675f229b79a67e485f62a09ce6
parent7bff59ed33c4a3eafc1b3a2c19238f8da562b37a (diff)
downloadweechat-220682c1bc12404f981f3ca74ce349342c3e4b9c.zip
exec: fix tag stdout/stderr used in command output
-rw-r--r--src/plugins/exec/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c
index e032849b3..b337d6f45 100644
--- a/src/plugins/exec/exec.c
+++ b/src/plugins/exec/exec.c
@@ -315,7 +315,7 @@ exec_display_line (struct t_exec_cmd *exec_cmd, struct t_gui_buffer *buffer,
snprintf (str_number, sizeof (str_number), "%d", exec_cmd->number);
snprintf (str_tags, sizeof (str_tags),
"exec_%s,exec_cmd_%s",
- (out) ? "stdout" : "stderr",
+ (out == EXEC_STDOUT) ? "stdout" : "stderr",
(exec_cmd->name) ? exec_cmd->name : str_number);
if (weechat_buffer_get_integer (buffer, "type") == 1)
{