summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-07-18 17:14:21 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-07-18 17:14:21 +0200
commitbcd472b309ac932031932da0fa7637e2f858dd1e (patch)
treebf44526de2307eb51769521bbe979413a095afe5 /main.go
parent766df4853017af7f1a64028e9db4f14d7f67b5a5 (diff)
Add top100
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.go b/main.go
index 49d647c..00d4f52 100644
--- a/main.go
+++ b/main.go
@@ -103,7 +103,11 @@ func (_ Help) Handle(conn *irc.Conn, line *irc.Line) {
}
func (_ Top) Handle(conn *irc.Conn, line *irc.Line) {
- s := fmt.Sprint(NewScores())
+ n := 100
+ if line.Public() {
+ n = 10
+ }
+ s := fmt.Sprint(NewScores(n))
conn.Privmsg(line.Target(), s)
}
@@ -194,7 +198,7 @@ func init() {
})
Register("top", &Top{
Command{
- Help: "Top 10 flooder",
+ Help: "Top 10 flooder (msg private to see top 100)",
},
})
}