New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added HIDDEN level to ignores #884
Conversation
The testing I did worked well but I might've missed something |
src/core/ignore.h
Outdated
@@ -29,6 +29,7 @@ int ignore_check(SERVER_REC *server, const char *nick, const char *host, | |||
enum { | |||
IGNORE_FIND_PATTERN = 0x01, /* Match the pattern */ | |||
IGNORE_FIND_NOACT = 0x02, /* Exclude the targets with NOACT level */ | |||
IGNORE_FIND_HIDDEN = 0x03, /* Exclude the targets with HIDDEN level */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be 0x04 (bits go like 1 2 4 8 0x10 0x20 0x40...)
src/fe-common/core/fe-ignore.c
Outdated
@@ -157,7 +157,8 @@ static void cmd_ignore(const char *data) | |||
g_strsplit(chanarg, ",", -1); | |||
|
|||
rec = ignore_find_full(servertag, mask, patternarg, channels, | |||
IGNORE_FIND_PATTERN | ((level & MSGLEVEL_NO_ACT) ? IGNORE_FIND_NOACT : 0)); | |||
IGNORE_FIND_PATTERN | ((level & MSGLEVEL_NO_ACT) ? IGNORE_FIND_NOACT : 0) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is getting too ugly, we should add a temp variable flags= IGNORE_FIND_PATTERN and ...if (level &...) flags |= ...;
I would prefer making the #define ignore_match_level into a function too, but it didn't become too ugly when I added hidden to it |
I think what would help there is a |
@irssi/developers |
What does this do? |
I think it allows you to /ignore ..... hidden and then it will hide the messages instead of ignoring them completely |
Indeed
…On Thu, Jun 7, 2018, 16:11 ailin-nemui ***@***.***> wrote:
I think it allows you to /ignore ..... hidden and then it will hide the
messages instead of ignoring them completely
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#884 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHqGLo9XuMcUXh-FIP7GdTnGPoXXwB8aks5t6TR1gaJpZM4UcGfE>
.
|
No description provided.