clear failed nick assignments to avoid confusion

This commit is contained in:
Shivaram Lingamneni
2018-02-27 05:22:01 -05:00
parent be86684e96
commit 54123ef9a2
+1
View File
@@ -437,6 +437,7 @@ func (server *Server) tryRegister(c *Client) {
nickAssigned := performNickChange(server, c, c, preregNick, rb)
rb.Send()
if !nickAssigned {
c.SetPreregNick("")
return
}