Don't check for * again, we handle that properly now

This commit is contained in:
Daniel Oaks 2019-04-08 10:54:52 +10:00
parent 8f47b3a6cf
commit 7bcba602ec
1 changed files with 1 additions and 2 deletions

View File

@ -133,8 +133,7 @@ func accRegisterHandler(server *Server, client *Client, msg ircmsg.IrcMessage, r
// sanitise account name
casefoldedAccount, err := CasefoldName(account)
// probably don't need explicit check for "*" here... but let's do it anyway just to make sure
if err != nil || msg.Params[1] == "*" {
if err != nil {
rb.Add(nil, server.name, "FAIL", "ACC", "REG_INVALID_ACCOUNT_NAME", account, client.t("Account name is not valid"))
return false
}