From 9e1fb44a53a2264583508c36f7c7e79a80ca4e84 Mon Sep 17 00:00:00 2001 From: Harmonic Date: Thu, 24 Sep 2020 16:12:39 -0400 Subject: [PATCH] Revert "Merge branch 'patch-4' into 'master'" This reverts merge request !274 --- .../incoming/guilds/GuildChangeNameDescEvent.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/java/com/eu/habbo/messages/incoming/guilds/GuildChangeNameDescEvent.java b/src/main/java/com/eu/habbo/messages/incoming/guilds/GuildChangeNameDescEvent.java index f25a3484..7942b2cd 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/guilds/GuildChangeNameDescEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/guilds/GuildChangeNameDescEvent.java @@ -5,7 +5,6 @@ import com.eu.habbo.habbohotel.guilds.Guild; import com.eu.habbo.habbohotel.permissions.Permission; import com.eu.habbo.habbohotel.rooms.Room; import com.eu.habbo.messages.incoming.MessageHandler; -import com.eu.habbo.messages.outgoing.guilds.GuildEditFailComposer; import com.eu.habbo.plugin.events.guilds.GuildChangedNameEvent; public class GuildChangeNameDescEvent extends MessageHandler { @@ -20,15 +19,6 @@ public class GuildChangeNameDescEvent extends MessageHandler { GuildChangedNameEvent nameEvent = new GuildChangedNameEvent(guild, this.packet.readString(), this.packet.readString()); Emulator.getPluginManager().fireEvent(nameEvent); - if(nameEvent.name.length() > 29){ - this.client.sendResponse(new GuildEditFailComposer(GuildEditFailComposer.INVALID_GUILD_NAME)); - return; - } - - if(nameEvent.description.length() > 254){ - return; - } - if (nameEvent.isCancelled()) return;