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 git-svn-id: file:///srv/svn/repo/suika/trunk@340 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
parent
b371ea1bf2
commit
a23ecb0998
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user