summaryrefslogtreecommitdiff
path: root/rfc.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-21 21:46:14 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-21 21:46:14 +0100
commit460bac780774bb582153313d06f67f331d18506f (patch)
treecfc5966c89277cd11be0311eedb256729e40d3f5 /rfc.go
parentb22a54c2e97a5e68590352c86235a8da245d5311 (diff)
Reduce interface
Diffstat (limited to 'rfc.go')
-rw-r--r--rfc.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/rfc.go b/rfc.go
index 9dffede..9ec363d 100644
--- a/rfc.go
+++ b/rfc.go
@@ -9,14 +9,13 @@ import (
irc "github.com/fluffle/goirc/client"
)
-type RFC struct{ Command }
+type RFC struct{}
var (
rfcMap = make(map[int]rfc.Entry)
rfcKW = make(map[string][]string)
)
-func (_ RFC) WithArgs(n int) bool { return n == 2 }
func (_ RFC) Handle(conn *irc.Conn, line *irc.Line) {
if f := strings.Fields(line.Text()); len(f) > 1 {
kw := strings.ToLower(f[1])