mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Merge branch '605-flood' into 'dev'
Resolve "Flood "problem"" See merge request morningstar/Arcturus-Community!168
This commit is contained in:
commit
1e51448b38
@ -1 +0,0 @@
|
|||||||
ALTER TABLE `permissions` ADD `acc_hide_mail` ENUM('0', '1') NOT NULL DEFAULT '0' AFTER `acc_hide_ip`;
|
|
3
sqlupdates/2_4_0-RC-1 to 2_4_0-RC-2.sql
Normal file
3
sqlupdates/2_4_0-RC-1 to 2_4_0-RC-2.sql
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ALTER TABLE `permissions` ADD `acc_hide_mail` ENUM('0', '1') NOT NULL DEFAULT '0' AFTER `acc_hide_ip`;
|
||||||
|
|
||||||
|
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('flood.with.rights', '0');
|
@ -1202,7 +1202,11 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
{
|
{
|
||||||
habbo.getHabboStats().chatCounter--;
|
habbo.getHabboStats().chatCounter--;
|
||||||
|
|
||||||
if (habbo.getHabboStats().chatCounter > 3 && !this.hasRights(habbo)) {
|
if (habbo.getHabboStats().chatCounter > 3) {
|
||||||
|
final boolean floodRights = Emulator.getConfig().getBoolean("flood.with.rights");
|
||||||
|
final boolean hasRights = this.hasRights(habbo);
|
||||||
|
|
||||||
|
if (floodRights || !hasRights) {
|
||||||
if (this.chatProtection == 0) {
|
if (this.chatProtection == 0) {
|
||||||
this.floodMuteHabbo(habbo, 30);
|
this.floodMuteHabbo(habbo, 30);
|
||||||
} else if (this.chatProtection == 1 && habbo.getHabboStats().chatCounter > 4) {
|
} else if (this.chatProtection == 1 && habbo.getHabboStats().chatCounter > 4) {
|
||||||
@ -1212,6 +1216,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
habbo.getHabboStats().chatCounter = 0;
|
habbo.getHabboStats().chatCounter = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user