summaryrefslogtreecommitdiff
path: root/flood.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-07-24 18:13:59 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-07-24 18:13:59 +0200
commit162569fa8c4c787772deef93402bc45fcd5bbc1e (patch)
treee4aaddc8d142cf224fa2a756575c4c416b62a951 /flood.go
parent3683fdcb999f728ad0ac67fdebc6846ad73d44fe (diff)
Adjust flood rate detector
Diffstat (limited to 'flood.go')
-rw-r--r--flood.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/flood.go b/flood.go
index a32d33c..198ee3b 100644
--- a/flood.go
+++ b/flood.go
@@ -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")
}