3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-11 06:29:29 +01:00

Merge pull request #1149 from slingamn/issue1059_certfp

fix #1059
This commit is contained in:
Shivaram Lingamneni 2020-06-22 20:23:15 -07:00 committed by GitHub
commit 0e7557c12d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1092,6 +1092,8 @@ func nsCertHandler(server *Server, client *Client, command string, params []stri
target, certfp = params[0], params[1] target, certfp = params[0], params[1]
} else if len(params) == 1 { } else if len(params) == 1 {
certfp = params[0] certfp = params[0]
} else if len(params) == 0 && verb == "add" && rb.session.certfp != "" {
certfp = rb.session.certfp // #1059
} else { } else {
nsNotice(rb, client.t("Invalid parameters")) nsNotice(rb, client.t("Invalid parameters"))
return return