openspades
openspades copied to clipboard
Suggestion: Remaining characters for chat messages
Remaining characters would turn red if you already used them all.
@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.)?
@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.