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:
parent
6c453aa5ca
commit
cfb1de044e
@ -1682,6 +1682,8 @@ func parseNickServCredentials(text, nick string) (username, password string, ok
|
|||||||
username = nick
|
username = nick
|
||||||
password = params[1]
|
password = params[1]
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
return "", "", false
|
||||||
}
|
}
|
||||||
return username, password, true
|
return username, password, true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user