mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
style format change
This commit is contained in:
parent
323b60f339
commit
69396482be
1 changed files with 10 additions and 10 deletions
|
|
@ -273,14 +273,14 @@ 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->priority > priority && !rec->nickmask &&
|
if (rec->priority > priority && !rec->nickmask && hilight_match_level(rec, level) &&
|
||||||
hilight_match_level(rec, level) && hilight_match_channel(rec, channel) &&
|
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)) {
|
||||||
tmprec = rec;
|
tmprec = rec;
|
||||||
priority = rec->priority;
|
priority = rec->priority;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return tmprec;
|
return tmprec;
|
||||||
|
|
@ -687,8 +687,8 @@ static void hilight_nick_cache(GHashTable *list, CHANNEL_REC *channel,
|
||||||
HILIGHT_REC *rec = tmp->data;
|
HILIGHT_REC *rec = tmp->data;
|
||||||
|
|
||||||
if (rec->priority > priority && rec->nickmask &&
|
if (rec->priority > priority && rec->nickmask &&
|
||||||
hilight_match_channel(rec, channel->name) &&
|
hilight_match_channel(rec, channel->name) &&
|
||||||
match_wildcards(rec->text, nickmask)) {
|
match_wildcards(rec->text, nickmask)) {
|
||||||
len = strlen(rec->text);
|
len = strlen(rec->text);
|
||||||
if (best_match < len) {
|
if (best_match < len) {
|
||||||
priority = rec->priority;
|
priority = rec->priority;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue