mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Use RTRIM instead of TRIM in chat messages
This commit is contained in:
parent
77be0527a7
commit
f2d1329883
@ -3065,7 +3065,11 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
|
||||
Rectangle show = this.roomSpecialTypes.tentAt(habbo.getRoomUnit().getCurrentLocation());
|
||||
|
||||
roomChatMessage.setMessage(roomChatMessage.getMessage().trim());
|
||||
String trimmedMessage = roomChatMessage.getMessage().replaceAll("\\s+$","");
|
||||
|
||||
if (trimmedMessage.isEmpty()) trimmedMessage = " ";
|
||||
|
||||
roomChatMessage.setMessage(trimmedMessage);
|
||||
|
||||
if (chatType == RoomChatType.WHISPER) {
|
||||
if (roomChatMessage.getTargetHabbo() == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user