mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Ignore spaces when validating room name length on creation
This commit is contained in:
parent
ed2ec3e6f3
commit
3df2f8055d
@ -41,7 +41,7 @@ public class RequestCreateRoomEvent extends MessageHandler {
|
||||
if (tradeType > 2)
|
||||
return;
|
||||
|
||||
if (name.length() < 3 || name.length() > 25 || !Emulator.getGameEnvironment().getWordFilter().filter(name, this.client.getHabbo()).equals(name))
|
||||
if (name.trim().length() < 3 || name.length() > 25 || !Emulator.getGameEnvironment().getWordFilter().filter(name, this.client.getHabbo()).equals(name))
|
||||
return;
|
||||
|
||||
if (description.length() > 128 || !Emulator.getGameEnvironment().getWordFilter().filter(description, this.client.getHabbo()).equals(description))
|
||||
|
Loading…
Reference in New Issue
Block a user