Browse Source

make erase confirmation code nondeterministic

tags/v2.1.0-rc1
Shivaram Lingamneni 4 years ago
parent
commit
a7f020320e
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      irc/nickserv.go

+ 2
- 0
irc/nickserv.go View File

@@ -841,6 +841,8 @@ func nsUnregisterHandler(server *Server, client *Client, command string, params
841 841
 	if erase {
842 842
 		// account may not be in a loadable state, e.g., if it was unregistered
843 843
 		accountName = username
844
+		// make the confirmation code nondeterministic for ERASE
845
+		registeredAt = server.ctime
844 846
 	} else {
845 847
 		account, err := server.accounts.LoadAccount(username)
846 848
 		if err == errAccountDoesNotExist {

Loading…
Cancel
Save