1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Removed extraneous fmt.

This commit is contained in:
Zack Scholl 2016-03-28 20:21:06 -04:00
parent a0c57004a8
commit 3f3cc1f41a

View File

@ -1,9 +1,6 @@
package main
import (
"fmt"
"time"
)
import "time"
var bannedIPs []string
@ -13,7 +10,6 @@ func init() {
func clearBannedIPs() {
for {
fmt.Println("CLEARING IPS!!")
bannedIPs = []string{}
time.Sleep(3 * time.Minute)
}
@ -23,7 +19,7 @@ func isIPBanned(ip string) bool {
if stringInSlice(ip, bannedIPs) {
return true
} else {
bannedIPs = append(bannedIPs, ip)
bannedIPs = append(bannedIPs, ip)
return false
}
}