summaryrefslogtreecommitdiff
path: root/top.go
diff options
context:
space:
mode:
Diffstat (limited to 'top.go')
-rw-r--r--top.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/top.go b/top.go
deleted file mode 100644
index db0c8c2..0000000
--- a/top.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package main
-
-import (
- "fmt"
-
- irc "github.com/fluffle/goirc/client"
-)
-
-type Top struct{ Command }
-
-func (_ Top) Handle(conn *irc.Conn, line *irc.Line) {
- n := 20
- if line.Public() {
- n = 10
- }
- s := fmt.Sprint(NewScores(n))
- conn.Notice(line.Target(), s)
-}
-
-func (_ Top) Help() string {
- return "Top 10 flooder (msg private to see top 100)"
-}
-
-func init() {
- Register("top", &Top{})
-}