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:
parent
be86684e96
commit
54123ef9a2
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user