mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Add bot motto max length to match user
This commit is contained in:
parent
e304ba1ecb
commit
208c07a809
@ -152,7 +152,11 @@ public class BotSaveSettingsEvent extends MessageHandler {
|
||||
}
|
||||
break;
|
||||
case 9:
|
||||
bot.setMotto(this.packet.readString());
|
||||
String motto = this.packet.readString();
|
||||
|
||||
if(motto.length() > Emulator.getConfig().getInt("motto.max_length", 38)) break;
|
||||
|
||||
bot.setMotto(motto);
|
||||
bot.needsUpdate(true);
|
||||
room.sendComposer(new RoomUsersComposer(bot).compose());
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user