diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2008-06-04 19:33:00 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-06-04 19:33:00 +0000 |
commit | 1a79bd055c35e391f73d6741667b0ea2244a43d9 (patch) | |
tree | 776769f0df3dee544d9300f48022a39479d65ad2 /src/fe-common/core/hilight-text.c | |
parent | 1e3e062b2434d728c518cc1e0f8ef1c7e6f49e9f (diff) | |
download | irssi-1a79bd055c35e391f73d6741667b0ea2244a43d9.zip |
Fix /set hilight_level not taking effect immediately (bug #598). Patch by exg.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4857 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/hilight-text.c')
-rw-r--r-- | src/fe-common/core/hilight-text.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index 3b8f39ef..cd71364b 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -40,7 +40,7 @@ static NICKMATCH_REC *nickmatch; static int never_hilight_level, default_hilight_level; GSList *hilights; -static void reset_cache(void) +static void reset_level_cache(void) { GSList *tmp; @@ -51,7 +51,11 @@ static void reset_cache(void) if (never_hilight_level & rec->level) never_hilight_level &= ~rec->level; } +} +static void reset_cache(void) +{ + reset_level_cache(); nickmatch_rebuild(nickmatch); } @@ -672,6 +676,7 @@ static void hilight_nick_cache(GHashTable *list, CHANNEL_REC *channel, static void read_settings(void) { default_hilight_level = settings_get_level("hilight_level"); + reset_level_cache(); } void hilight_text_init(void) |