diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-07-29 20:20:01 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-07-29 20:20:01 +0200 |
commit | 48f0b5bc2c42bba866bbed26b7fa0741b7664179 (patch) | |
tree | 4389e7698c2719402490130d4e9bfeecb026530d /flood.go | |
parent | ac23f21e41ca06f948f7f299aae1436e439b0637 (diff) |
Kick on timeout, detect flood only on public line
Diffstat (limited to 'flood.go')
-rw-r--r-- | flood.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,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 < 2 { - log.Println("kick", line.Nick) + log.Println("flood", line.Nick) conn.Kick(*room, line.Nick, "flood") } } |