forked from PsychoticNinja/irssi
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
This commit is contained in:
parent
1e3e062b24
commit
1a79bd055c
1
NEWS
1
NEWS
@ -19,6 +19,7 @@ v0.8.13
|
|||||||
- Fix mode display in whois with unreal (379 numeric) (bug #479).
|
- Fix mode display in whois with unreal (379 numeric) (bug #479).
|
||||||
- Fix regressions that prevented external modules from building/working
|
- Fix regressions that prevented external modules from building/working
|
||||||
(bugs #537 #539).
|
(bugs #537 #539).
|
||||||
|
- Fix /set hilight_level not taking effect immediately (bug #598).
|
||||||
|
|
||||||
v0.8.12 2007-10-06 The Irssi team <staff@irssi.org>
|
v0.8.12 2007-10-06 The Irssi team <staff@irssi.org>
|
||||||
+ Some changes to character set recoding.
|
+ Some changes to character set recoding.
|
||||||
|
@ -40,7 +40,7 @@ static NICKMATCH_REC *nickmatch;
|
|||||||
static int never_hilight_level, default_hilight_level;
|
static int never_hilight_level, default_hilight_level;
|
||||||
GSList *hilights;
|
GSList *hilights;
|
||||||
|
|
||||||
static void reset_cache(void)
|
static void reset_level_cache(void)
|
||||||
{
|
{
|
||||||
GSList *tmp;
|
GSList *tmp;
|
||||||
|
|
||||||
@ -51,7 +51,11 @@ static void reset_cache(void)
|
|||||||
if (never_hilight_level & rec->level)
|
if (never_hilight_level & rec->level)
|
||||||
never_hilight_level &= ~rec->level;
|
never_hilight_level &= ~rec->level;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void reset_cache(void)
|
||||||
|
{
|
||||||
|
reset_level_cache();
|
||||||
nickmatch_rebuild(nickmatch);
|
nickmatch_rebuild(nickmatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -672,6 +676,7 @@ static void hilight_nick_cache(GHashTable *list, CHANNEL_REC *channel,
|
|||||||
static void read_settings(void)
|
static void read_settings(void)
|
||||||
{
|
{
|
||||||
default_hilight_level = settings_get_level("hilight_level");
|
default_hilight_level = settings_get_level("hilight_level");
|
||||||
|
reset_level_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
void hilight_text_init(void)
|
void hilight_text_init(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user