mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 04:09:07 +07:00
strip message newlines
This commit is contained in:
parent
edbe795aa5
commit
826ddf4aad
@ -218,6 +218,8 @@ public class NetClient implements ApplicationListener{
|
||||
throw new ValidateException(player, "Player has sent a message above the text limit.");
|
||||
}
|
||||
|
||||
message = message.replace("\n", "");
|
||||
|
||||
Events.fire(new PlayerChatEvent(player, message));
|
||||
|
||||
//log commands before they are handled
|
||||
|
Loading…
Reference in New Issue
Block a user