1
0
Fork 0
forked from External/ergo

Fix some issues, add RPL_WHOISACCOUNT

This commit is contained in:
Daniel Oaks 2018-01-21 12:23:47 +10:00
parent ac99e82192
commit 0d5327de8a
3 changed files with 19 additions and 5 deletions

View file

@ -322,10 +322,17 @@ func (client *Client) TryResume() {
timestamp := client.resumeDetails.Timestamp
var timestampString string
if timestamp != nil {
timestampString := timestamp.UTC().Format("2006-01-02T15:04:05.999Z")
timestampString = timestamp.UTC().Format("2006-01-02T15:04:05.999Z")
}
oldClient := server.clients.Get(oldnick)
// can't use server.clients.Get since we hold server.clients' tier 1 mutex
casefoldedName, err := CasefoldName(oldnick)
if err != nil {
client.Send(nil, server.name, ERR_CANNOT_RESUME, oldnick, "Cannot resume connection, old client not found")
return
}
oldClient := server.clients.byNick[casefoldedName]
if oldClient == nil {
client.Send(nil, server.name, ERR_CANNOT_RESUME, oldnick, "Cannot resume connection, old client not found")
return