summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-04-25 19:41:49 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-04-25 19:41:49 +0200
commit49cdbaab38bbd6e4d0340e2b77bcde10c6068e36 (patch)
tree398def678ab5726946328221dc03b57af0db871f
parent2a43f459470e2aa4033271504fb2102e8fd0813d (diff)
downloadweechat-49cdbaab38bbd6e4d0340e2b77bcde10c6068e36.zip
core: fix check of condition in ${if:...} (evaluated strings)
-rw-r--r--src/core/wee-eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-eval.c b/src/core/wee-eval.c
index fa46daf0c..ebcaec5fe 100644
--- a/src/core/wee-eval.c
+++ b/src/core/wee-eval.c
@@ -559,7 +559,7 @@ eval_replace_vars_cb (void *data, const char *text)
tmp = eval_expression_condition (condition, pointers,
extra_vars, extra_vars_eval,
prefix, suffix);
- rc = (tmp && strcmp (tmp, "1") == 0);
+ rc = eval_is_true (tmp);
if (tmp)
free (tmp);
if (rc)