Don't save corrupted NickServ credentials

soju saved most NickServ messages[0] as credentials because of a missing
`default` clause in the check of the NickServ command.

[0] messages that had at least a command and two other parameters
This commit is contained in:
Hubert Hirtz 2020-06-24 21:48:09 +02:00 committed by Simon Ser
parent 6c453aa5ca
commit cfb1de044e
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -1682,6 +1682,8 @@ func parseNickServCredentials(text, nick string) (username, password string, ok
username = nick
password = params[1]
}
default:
return "", "", false
}
return username, password, true
}