summaryrefslogtreecommitdiff
path: root/blame.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 /blame.go
parent3daaf1f4f28443dfb0439d1f8ced0b129fd89d76 (diff)
Move Help() into interface{}
Diffstat (limited to 'blame.go')
-rw-r--r--blame.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/blame.go b/blame.go
index 20fc560..94356cb 100644
--- a/blame.go
+++ b/blame.go
@@ -8,6 +8,7 @@ type Blame struct{ Command }
func (_ Blame) Handle(conn *irc.Conn, line *irc.Line) {
src := []string{
+ "Author: Dimitri Sokolyuk <demon@dim13.org>",
"Source: http://cgit.dim13.org/bot.git",
"Install: go get dim13.org/bot",
}
@@ -16,10 +17,10 @@ func (_ Blame) Handle(conn *irc.Conn, line *irc.Line) {
}
}
+func (_ Blame) Help() string {
+ return "Blame author and return link to source code"
+}
+
func init() {
- Register("blame", &Blame{
- Command{
- Help: "Blame author and return link to source code",
- },
- })
+ Register("blame", &Blame{})
}