summaryrefslogtreecommitdiff
path: root/rfc.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-21 23:27:29 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-21 23:27:29 +0200
commitdcec8549b4a91863d6f8820582bd757447a6b408 (patch)
tree1e4a4718e0ea6694308bd40a0857c531d89baa0b /rfc.go
parent3daaf1f4f28443dfb0439d1f8ced0b129fd89d76 (diff)
Move Help() into interface{}
Diffstat (limited to 'rfc.go')
-rw-r--r--rfc.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/rfc.go b/rfc.go
index 273cc0f..3b916bb 100644
--- a/rfc.go
+++ b/rfc.go
@@ -29,6 +29,10 @@ func (_ RFC) Handle(conn *irc.Conn, line *irc.Line) {
}
}
+func (_ RFC) Help() string {
+ return "search rfc by keyword"
+}
+
func ExtractRFC(conn *irc.Conn, line *irc.Line) {
for _, v := range strings.Fields(line.Text()) {
var id int
@@ -61,9 +65,5 @@ func init() {
}
}
}
- Register("rfc", &RFC{
- Command{
- Help: "search rfc by keyword",
- },
- })
+ Register("rfc", &RFC{})
}