mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Optimize execution
This commit is contained in:
parent
eb4174ee1e
commit
4fb10322d1
@ -272,12 +272,11 @@ HILIGHT_REC *hilight_match(SERVER_REC *server, const char *channel,
|
|||||||
for (tmp = hilights; tmp != NULL; tmp = tmp->next) {
|
for (tmp = hilights; tmp != NULL; tmp = tmp->next) {
|
||||||
HILIGHT_REC *rec = tmp->data;
|
HILIGHT_REC *rec = tmp->data;
|
||||||
|
|
||||||
if (!rec->nickmask && hilight_match_level(rec, level) &&
|
if (rec->priority > priority && !rec->nickmask &&
|
||||||
hilight_match_channel(rec, channel) &&
|
hilight_match_level(rec, level) && hilight_match_channel(rec, channel) &&
|
||||||
(rec->servertag == NULL ||
|
(rec->servertag == NULL ||
|
||||||
(server != NULL && g_ascii_strcasecmp(rec->servertag, server->tag) == 0)) &&
|
(server != NULL && g_ascii_strcasecmp(rec->servertag, server->tag) == 0)) &&
|
||||||
hilight_match_text(rec, str, match_beg, match_end) &&
|
hilight_match_text(rec, str, match_beg, match_end)) {
|
||||||
rec->priority > priority) {
|
|
||||||
tmprec = rec;
|
tmprec = rec;
|
||||||
priority = rec->priority;
|
priority = rec->priority;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user