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

AntiSpam: Prevent heavy unicode & utf16/32 from lagging the game #425

Merged
merged 2 commits into from
Dec 12, 2022
Merged

AntiSpam: Prevent heavy unicode & utf16/32 from lagging the game #425

merged 2 commits into from
Dec 12, 2022

Conversation

Edouard127
Copy link
Contributor

Describe the pull
This simply checks the bytes of the string, and if It's over a threshold then It blocks the message.

There's no need to log the message because usually when the threshold is reached, it's full of characters that minecraft or logs can't display

@Avanatiker Avanatiker merged commit 0a80a68 into lambda-client:master Dec 12, 2022
rfresh2 pushed a commit to rfresh2/lambda that referenced this pull request Jan 31, 2023
…bda-client#425)

* lag prevent

* Change to safeListener

Co-authored-by: Constructor <fractalminds@protonmail.com>
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