From dcec8549b4a91863d6f8820582bd757447a6b408 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 21 Sep 2015 23:27:29 +0200 Subject: Move Help() into interface{} --- blame.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'blame.go') 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 ", "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{}) } -- cgit v1.2.3