From 671a43e6c5e0c627b276e9ae491d840bffef10bd Mon Sep 17 00:00:00 2001 From: Harmonic Date: Fri, 5 Jun 2020 14:27:37 -0400 Subject: [PATCH] Revert "Merge branch 'fix-chat-exploit' into 'dev'" This reverts merge request !224 --- .../java/com/eu/habbo/habbohotel/rooms/Room.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java index d8488b7e..9079713e 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -3040,20 +3040,6 @@ public class Room implements Comparable, ISerialize, Runnable { if (habbo.getHabboInfo().getCurrentRoom() != this) return; - if (!habbo.hasPermission(Permission.ACC_CHAT_NO_FLOOD) && habbo.getHabboStats().chatCounter > 0) { - int chatCounter = habbo.getHabboStats().chatCounter - 1; - - if (chatCounter > 3 && !this.hasRights(habbo)) { - if (this.chatProtection == 0) { - this.floodMuteHabbo(habbo, 30); - } else if (this.chatProtection == 1 && chatCounter > 4) { - this.floodMuteHabbo(habbo, 30); - } else if (this.chatProtection == 2 && chatCounter > 5) { - this.floodMuteHabbo(habbo, 30); - } - } - } - long millis = System.currentTimeMillis(); if (HABBO_CHAT_DELAY) { if (millis - habbo.getHabboStats().lastChat < 750) {