-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: supports CLIENTTAGDENY parsing and "is blocked" function
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.
- Loading branch information
1 parent
117580e
commit bb168ef
Showing
2 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters