summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blame.go2
-rw-r--r--help.go2
-rw-r--r--rfc.go3
-rw-r--r--top.go2
-rw-r--r--uptime.go2
5 files changed, 6 insertions, 5 deletions
diff --git a/blame.go b/blame.go
index 94356cb..c122028 100644
--- a/blame.go
+++ b/blame.go
@@ -13,7 +13,7 @@ func (_ Blame) Handle(conn *irc.Conn, line *irc.Line) {
"Install: go get dim13.org/bot",
}
for _, s := range src {
- conn.Notice(line.Target(), s)
+ conn.Notice(line.Nick, s)
}
}
diff --git a/help.go b/help.go
index cc09f5a..dc01cdf 100644
--- a/help.go
+++ b/help.go
@@ -16,7 +16,7 @@ func (_ Help) Handle(conn *irc.Conn, line *irc.Line) {
}
sort.Sort(sort.StringSlice(msg))
for _, s := range msg {
- conn.Notice(line.Target(), s)
+ conn.Notice(line.Nick, s)
}
}
diff --git a/rfc.go b/rfc.go
index 288f645..9dffede 100644
--- a/rfc.go
+++ b/rfc.go
@@ -22,7 +22,8 @@ func (_ RFC) Handle(conn *irc.Conn, line *irc.Line) {
kw := strings.ToLower(f[1])
if e, ok := rfcKW[kw]; ok {
if line.Public() && len(e) > 10 {
- e = append(e[:10], "...")
+ n := fmt.Sprint("... ", len(e), " total")
+ e = append(e[:10], n)
}
s := strings.Join(e, ", ")
conn.Notice(line.Target(), s)
diff --git a/top.go b/top.go
index bcccc64..db0c8c2 100644
--- a/top.go
+++ b/top.go
@@ -9,7 +9,7 @@ import (
type Top struct{ Command }
func (_ Top) Handle(conn *irc.Conn, line *irc.Line) {
- n := 100
+ n := 20
if line.Public() {
n = 10
}
diff --git a/uptime.go b/uptime.go
index ebdc6ff..d0dd89e 100644
--- a/uptime.go
+++ b/uptime.go
@@ -13,7 +13,7 @@ type Uptime struct {
}
func (u Uptime) Handle(conn *irc.Conn, line *irc.Line) {
- conn.Notice(line.Target(), fmt.Sprint(time.Since(u.boot)))
+ conn.Notice(line.Nick, fmt.Sprint(time.Since(u.boot)))
}
func (_ Uptime) Help() string {