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

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

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
}