mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-19 07:56:26 +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());
|
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 (chatType == RoomChatType.WHISPER) {
|
||||||
if (roomChatMessage.getTargetHabbo() == null) {
|
if (roomChatMessage.getTargetHabbo() == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user