master
Marc 2021-05-29 00:06:52 +01:00
parent f8c40280a3
commit 2bcf6b7136
No known key found for this signature in database
GPG Key ID: 0657563F705ACAAE
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ func (o *Overwatch) Run() {
go func() {
for range time.Tick(10 * time.Second) {
for _, user := range o.UserMessages {
log.Printf("User: %+v", user)
// load the threshold from the config file
if user.MessagesLastTenSecs > 10 {
// Set slow mode, kick user? add kick count?