master
Marc 2021-05-31 23:41:56 +01:00
parent 0918eda312
commit 97a8b3f430
No known key found for this signature in database
GPG Key ID: 0657563F705ACAAE
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func (o *Overwatch) handleServerJoin(s *discordgo.Session, m *discordgo.GuildMem
o.ServerStats.JoinsLastTenMins++
// json value
if o.ServerStats.JoinsLastTenMins > 10 {
if o.ServerStats.JoinsLastTenMins > o.Config.JoinFloodThreshold {
log.Printf("[*] User flood detected, enforcing slow mode on all channels for 30 minutes\n")
// Set slow mode on all channels
o.ServerStats.SlowmodeFlood = true