tile38/controller/auth.go

16 lines
274 B
Go
Raw Normal View History

2016-03-08 03:37:39 +03:00
package controller
func (c *Controller) cmdAuth(line string) error {
var password string
if line, password = token(line); password == "" {
return errInvalidNumberOfArguments
}
if line != "" {
return errInvalidNumberOfArguments
}
println(password)
return nil
}