summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)",
},
})
}