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{} --- theo.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'theo.go') diff --git a/theo.go b/theo.go index 2da46e2..fae369b 100644 --- a/theo.go +++ b/theo.go @@ -11,10 +11,10 @@ func (_ Theo) Handle(conn *irc.Conn, line *irc.Line) { conn.Notice(line.Target(), theo.Theo()) } +func (_ Theo) Help() string { + return "Quote Theo De Raadt" +} + func init() { - Register("theo", &Theo{ - Command{ - Help: "Quote Theo De Raadt", - }, - }) + Register("theo", &Theo{}) } -- cgit v1.2.3