Skip to content
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

feat: support CLIENTTAGDENY #368

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

ItsOnlyBinary
Copy link
Contributor

This version has fixed and improved tests, and a more simplified helper function.

supersedes: #366

This is useful for clients which want to do graceful degradations of client tags features such as typing, reacts, replies, etc.

See https://ircv3.net/specs/extensions/message-tags#rpl_isupport-tokens for specification.

RaitoBezarius and others added 3 commits August 11, 2023 16:19
This is useful for clients which want to do graceful
degradations of client tags features such as typing, reacts, replies, etc.

See https://ircv3.net/specs/extensions/message-tags#rpl_isupport-tokens
for specification.
This introduces a `MessageTags.parseDenylist` which parses
the value of `CLIENTTAGDENY=<value>` string into a structure containing
everything you need to perform O(#allowed tags) or O(#denied tags)
check for whether a tag is allowed or not.

Then, a `MessageTags.isBlocked` function can be used to leverage that
structure to perform this check.
@ItsOnlyBinary ItsOnlyBinary merged commit ba10140 into kiwiirc:master Aug 21, 2024
4 checks passed
@ItsOnlyBinary ItsOnlyBinary deleted the clienttagdeny branch August 21, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants