From ab3ac231da829dd1aeca4dba9aeb0498645a2da2 Mon Sep 17 00:00:00 2001 From: Chris Rhodes Date: Mon, 18 Feb 2013 12:01:32 -0800 Subject: [PATCH] Clean up SimpleCommand, less casting. --- client/dispatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/dispatch.go b/client/dispatch.go index 672e7c0..a51db93 100644 --- a/client/dispatch.go +++ b/client/dispatch.go @@ -197,7 +197,7 @@ func (conn *Conn) SimpleCommand(prefix string, handler Handler) Remover { } handler.Handle(conn, line) } - return conn.Command(fmt.Sprintf(SimpleCommandRegex, strings.ToLower(prefix)), HandlerFunc(stripHandler), math.MaxInt32) + return conn.CommandFunc(fmt.Sprintf(SimpleCommandRegex, strings.ToLower(prefix)), stripHandler, math.MaxInt32) } func (conn *Conn) SimpleCommandFunc(prefix string, handlerFunc HandlerFunc) Remover {