mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Make ignore exceptions take precedence over ignores in all cases, as documented.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4764 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
db5b348b5e
commit
ca1bb6a8ed
@ -160,12 +160,13 @@ int ignore_check(SERVER_REC *server, const char *nick, const char *host,
|
||||
if (len > best_mask) {
|
||||
best_mask = len;
|
||||
best_match = !rec->exception;
|
||||
} else if (len == best_mask && rec->pattern != NULL) {
|
||||
len = strlen(rec->pattern);
|
||||
} else if (len == best_mask) {
|
||||
len = rec->pattern == NULL ? 0 : strlen(rec->pattern);
|
||||
if (len > best_patt) {
|
||||
best_patt = len;
|
||||
best_match = !rec->exception;
|
||||
}
|
||||
} else if (len == best_patt && rec->exception)
|
||||
best_match = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user