Clean up SimpleCommand, less casting.

This commit is contained in:
Chris Rhodes 2013-02-18 12:01:32 -08:00
parent 6fc99107e6
commit ab3ac231da
1 changed files with 1 additions and 1 deletions

View File

@ -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 {