forked from External/ergo
fix several session destruction bugs
This commit is contained in:
parent
da656c07c8
commit
60c8f286e8
4 changed files with 71 additions and 55 deletions
|
|
@ -160,9 +160,7 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick
|
|||
if !currentClient.AddSession(session) {
|
||||
return errNicknameInUse
|
||||
}
|
||||
// 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)
|
||||
// successful reattach!
|
||||
return nil
|
||||
}
|
||||
// analogous checks for skeletons
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue