diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-07-24 18:13:59 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-07-24 18:13:59 +0200 |
commit | 162569fa8c4c787772deef93402bc45fcd5bbc1e (patch) | |
tree | e4aaddc8d142cf224fa2a756575c4c416b62a951 /flood.go | |
parent | 3683fdcb999f728ad0ac67fdebc6846ad73d44fe (diff) |
Adjust flood rate detector
Diffstat (limited to 'flood.go')
-rw-r--r-- | flood.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ func MedianLength(v []string) int { func DetectFlood(conn *irc.Conn, line *irc.Line) { if f := strings.Fields(line.Text()); len(f) > 8 { - if m := MedianLength(f); m < 3 { + if m := MedianLength(f); m < 2 { log.Println("kick", line.Nick) conn.Kick(*room, line.Nick, "flood") } |