mirror of https://github.com/ergochat/ergo.git
Update nickserv.go
Compare the case-normalized target to Account()
This commit is contained in:
parent
9d53d9ff3a
commit
136dd1a2c1
|
@ -1398,7 +1398,7 @@ func nsCertHandler(service *ircService, server *Server, client *Client, command
|
|||
case "add", "del":
|
||||
if 2 <= len(params) {
|
||||
target, certfp = params[0], params[1]
|
||||
if client.Account() == target {
|
||||
if cftarget, err := CasefoldName(target); err == nil && client.Account() == cftarget {
|
||||
// If the target is equal to the account, then the user accidentally invoked operator
|
||||
// syntax (cert add mynick <fp>) instead of self syntax (cert add <fp>).
|
||||
target = ""
|
||||
|
|
Loading…
Reference in New Issue