summaryrefslogtreecommitdiff
path: root/rfc.go
diff options
context:
space:
mode:
Diffstat (limited to 'rfc.go')
-rw-r--r--rfc.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/rfc.go b/rfc.go
index 3b916bb..288f645 100644
--- a/rfc.go
+++ b/rfc.go
@@ -21,6 +21,9 @@ func (_ RFC) Handle(conn *irc.Conn, line *irc.Line) {
if f := strings.Fields(line.Text()); len(f) > 1 {
kw := strings.ToLower(f[1])
if e, ok := rfcKW[kw]; ok {
+ if line.Public() && len(e) > 10 {
+ e = append(e[:10], "...")
+ }
s := strings.Join(e, ", ")
conn.Notice(line.Target(), s)
} else {
@@ -30,7 +33,7 @@ func (_ RFC) Handle(conn *irc.Conn, line *irc.Line) {
}
func (_ RFC) Help() string {
- return "search rfc by keyword"
+ return "search rfc by keyword (msg privat to see all matches)"
}
func ExtractRFC(conn *irc.Conn, line *irc.Line) {