3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-29 15:40:02 +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) nickAssigned := performNickChange(server, c, c, preregNick, rb)
rb.Send() rb.Send()
if !nickAssigned { if !nickAssigned {
c.SetPreregNick("")
return return
} }