update: improve flood detection

This commit is contained in:
duckietm 2024-04-08 13:53:55 +02:00
parent ef10b1de85
commit 754de3d248

View File

@ -3176,10 +3176,13 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
final boolean hasRights = this.hasRights(habbo); final boolean hasRights = this.hasRights(habbo);
if (floodRights || !hasRights) { if (floodRights || !hasRights) {
if (this.chatProtection == 0) {
this.floodMuteHabbo(habbo, muteTime); this.floodMuteHabbo(habbo, muteTime);
return; return;
} /* else if (this.chatProtection == 1 && chatCounter > 4) {
/*if (this.chatProtection == 0) {
this.floodMuteHabbo(habbo, muteTime);
return;
} else if (this.chatProtection == 1 && chatCounter > 4) {
this.floodMuteHabbo(habbo, muteTime); this.floodMuteHabbo(habbo, muteTime);
return; return;
} else if (this.chatProtection == 2 && chatCounter > 5) { } else if (this.chatProtection == 2 && chatCounter > 5) {