mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-17 21:34:47 -07:00
temporarily assign the client a nick during reattach
(So that the registration burst displays correctly)
This commit is contained in:
@@ -160,7 +160,9 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick
|
|||||||
if !currentClient.AddSession(session) {
|
if !currentClient.AddSession(session) {
|
||||||
return errNicknameInUse
|
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
|
return nil
|
||||||
}
|
}
|
||||||
// analogous checks for skeletons
|
// analogous checks for skeletons
|
||||||
|
|||||||
Reference in New Issue
Block a user