From 8b733e056874801b8b094f7a456f5548bb84b8f0 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 26 Jun 2001 15:33:07 +0000 Subject: 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 --- src/fe-text/statusbar-items.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fe-text') 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; -- cgit v1.2.3