diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-26 18:52:01 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-26 18:52:01 +0000 |
commit | db03c25952ba36c42bf9b74ccbc980bd3212ad2d (patch) | |
tree | bc5227a081acab2639ef46b8678c691c86bc021e /src/fe-common | |
parent | ff5961dd09d465b1f9c52c990d72781a722d2ea4 (diff) | |
download | irssi-db03c25952ba36c42bf9b74ccbc980bd3212ad2d.zip |
nickmatch-cache wasn't initialized if there wasn't hilights = { ... }
block in config file
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1142 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/hilight-text.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index c5b301c7..ea6a4940 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -458,7 +458,10 @@ static void read_hilight_config(void) hilights_destroy_all(); node = iconfig_node_traverse("hilights", FALSE); - if (node == NULL) return; + if (node == NULL) { + reset_cache(); + return; + } for (tmp = node->value; tmp != NULL; tmp = tmp->next) { node = tmp->data; |