summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-06-26 15:33:07 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-06-26 15:33:07 +0000
commit8b733e056874801b8b094f7a456f5548bb84b8f0 (patch)
treed18008d2fc933f4c026a70630412908a7e385716 /src/fe-text
parent0a3a175a7dc8616ba2000973437fcaa4f5cf64d8 (diff)
downloadirssi-8b733e056874801b8b094f7a456f5548bb84b8f0.zip
special-vars: added flag PARSE_FLAG_ESCAPE_THEME to escape { and } chars
with % char. Used this with statusbar items - now for example "{error xxx}" topic won't print it with error color. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1564 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/statusbar-items.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c
index c3b69725..7c72e47b 100644
--- a/src/fe-text/statusbar-items.c
+++ b/src/fe-text/statusbar-items.c
@@ -95,7 +95,8 @@ static void item_default(SBAR_ITEM_REC *item, int get_size_only,
/* expand $variables */
tmpstr = parse_special_string(str, server, wiitem, data, NULL,
- PARSE_FLAG_ESCAPE_VARS);
+ PARSE_FLAG_ESCAPE_VARS |
+ PARSE_FLAG_ESCAPE_THEME);
/* expand templates */
str = tmpstr;