mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
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
This commit is contained in:
parent
0a3a175a7d
commit
8b733e0568
3 changed files with 27 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue