mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Add max length to PM messages
This commit is contained in:
parent
236c4adc0a
commit
634c2cbfc3
@ -25,6 +25,8 @@ public class FriendPrivateMessageEvent extends MessageHandler {
|
||||
if (buddy == null)
|
||||
return;
|
||||
|
||||
if (message.length() > 255) message = message.substring(0, 255);
|
||||
|
||||
UserFriendChatEvent event = new UserFriendChatEvent(this.client.getHabbo(), buddy, message);
|
||||
if (Emulator.getPluginManager().fireEvent(event).isCancelled())
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user