Skip to content

feat: support CLIENTTAGDENY#368

Merged
ItsOnlyBinary merged 3 commits intokiwiirc:masterfrom
ItsOnlyBinary:clienttagdeny
Aug 21, 2024
Merged

feat: support CLIENTTAGDENY#368
ItsOnlyBinary merged 3 commits intokiwiirc:masterfrom
ItsOnlyBinary:clienttagdeny

Conversation

@ItsOnlyBinary
Copy link
Copy Markdown
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
@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