1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

core/ignore: fix #900

This commit is contained in:
Doug Freed 2018-08-03 17:07:06 -04:00 committed by GitHub
parent 0c94d44f52
commit f3909b8bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,8 @@ static int ignore_match_level(IGNORE_REC *rec, int level)
{
if (level & FLAG_MSGLEVELS) {
int flaglevel = level & FLAG_MSGLEVELS;
return (level & rec->level) && (flaglevel & rec->level);
int msglevel = level & ~FLAG_MSGLEVELS;
return (msglevel & rec->level) && (flaglevel & rec->level);
} else if (!(rec->level & FLAG_MSGLEVELS)) {
return (level & rec->level);
} else {