1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix check of condition in ${if:...} (evaluated strings)

This commit is contained in:
Sébastien Helleu
2017-04-25 19:41:49 +02:00
parent 2a43f45947
commit 49cdbaab38
+1 -1
View File
@@ -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)