Skip to content

Commit

Permalink
give slight chat width leeway to prevent cutoffs
Browse files Browse the repository at this point in the history
  • Loading branch information
onlypuppy7 committed Dec 11, 2024
1 parent 54cf742 commit 2c4f26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server-game/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class newClient {
if (text.startsWith("/")) {
this.room.perm.inputCmd(this.player, text);
} else if (!this.room.censor.detect(text, true)) { //todo, ratelimiting
text = fixStringWidth(text, maxChatWidth);
text = fixStringWidth(text, maxChatWidth * 1.25); // giving slight leeway to prevent cutoffs
var output = new Comm.Out();
if (text.startsWith("@")) {
var {mentions} = parseMentions(text, this);
Expand Down

0 comments on commit 2c4f26e

Please sign in to comment.