mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +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;
|
break;
|
||||||
case 9:
|
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);
|
bot.needsUpdate(true);
|
||||||
room.sendComposer(new RoomUsersComposer(bot).compose());
|
room.sendComposer(new RoomUsersComposer(bot).compose());
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user