yvt / openspades

Compatible client of Ace of Spades 0.75
http://openspades.yvt.jp/
GNU General Public License v3.0
1.14k stars 218 forks source link

Suggestion: Remaining characters for chat messages #898

Open adterval opened 4 years ago

adterval commented 4 years ago

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

yvt commented 4 years ago

@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 commented 4 years ago

@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.