summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-26 18:52:01 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-26 18:52:01 +0000
commitdb03c25952ba36c42bf9b74ccbc980bd3212ad2d (patch)
treebc5227a081acab2639ef46b8678c691c86bc021e /src/fe-common
parentff5961dd09d465b1f9c52c990d72781a722d2ea4 (diff)
downloadirssi-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.c5
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;