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

Suggestion: Remaining characters for chat messages #898

Open
adterval opened this issue May 30, 2020 · 2 comments
Open

Suggestion: Remaining characters for chat messages #898

adterval opened this issue May 30, 2020 · 2 comments
Labels
enhancement request/proposal to add a new feature

Comments

@adterval
Copy link

Remaining characters would turn red if you already used them all.
image

@feikname feikname added the enhancement request/proposal to add a new feature label May 30, 2020
@yvt
Copy link
Owner

yvt commented May 31, 2020

@NotAFile Does piqueserver (or pyspades) have a hard-coded limit for chat messages? If so, how is it measured (UTF-8 encoded bytes, grapheme clusters, post-NFC scalars, etc.)?

@NotAFile
Copy link
Contributor

NotAFile commented Aug 5, 2020

@yvt MAX_CHAT_SIZE is 90 unicode codepoints. Although it's applied somewhat inconsistently. It does not do any normalization. This is roughly what the original client could display.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement request/proposal to add a new feature
Projects
None yet
Development

No branches or pull requests

4 participants