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 {