mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
temporarily assign the client a nick during reattach
(So that the registration burst displays correctly)
This commit is contained in:
parent
4af783ed9e
commit
fe6a520fa4
1 changed files with 3 additions and 1 deletions
|
|
@ -160,7 +160,9 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick
|
|||
if !currentClient.AddSession(session) {
|
||||
return errNicknameInUse
|
||||
}
|
||||
// successful reattach:
|
||||
// successful reattach. temporarily assign them the nick they'll have going forward
|
||||
// (the current `client` will be discarded at the end of command execution)
|
||||
client.updateNick(currentClient.Nick(), newcfnick, newSkeleton)
|
||||
return nil
|
||||
}
|
||||
// analogous checks for skeletons
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue