summaryrefslogtreecommitdiff
path: root/flood.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-07-29 20:20:01 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-07-29 20:20:01 +0200
commit48f0b5bc2c42bba866bbed26b7fa0741b7664179 (patch)
tree4389e7698c2719402490130d4e9bfeecb026530d /flood.go
parentac23f21e41ca06f948f7f299aae1436e439b0637 (diff)
Kick on timeout, detect flood only on public line
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 198ee3b..59949e7 100644
--- a/flood.go
+++ b/flood.go
@@ -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")
}
}