increase chat limit

This commit is contained in:
RandomityGuy 2024-06-30 00:02:02 +05:30
parent b4b6e256ed
commit daf1654b69

View file

@ -87,7 +87,7 @@ class ChatCtrl extends GuiControl {
this.chatHudInput.text.onKeyDown = (e) -> { this.chatHudInput.text.onKeyDown = (e) -> {
if (e.keyCode == Key.ENTER) { if (e.keyCode == Key.ENTER) {
if (StringTools.trim(this.chatHudInput.text.text) != "") { if (StringTools.trim(this.chatHudInput.text.text) != "") {
sendText = '<font color="#F29515">${StringTools.htmlEscape(Settings.highscoreName.substr(0, 20))}:</font> ${StringTools.htmlEscape(this.chatHudInput.text.text.substr(0, 50))}'; sendText = '<font color="#F29515">${StringTools.htmlEscape(Settings.highscoreName.substr(0, 30))}:</font> ${StringTools.htmlEscape(this.chatHudInput.text.text.substr(0, 100))}';
if (Net.isClient) { if (Net.isClient) {
NetCommands.sendChatMessage(StringTools.htmlEscape(sendText)); NetCommands.sendChatMessage(StringTools.htmlEscape(sendText));
} }