|
@@ -424,7 +424,7 @@ func (server *Server) tryRegister(c *Client) {
|
424
|
424
|
reason += fmt.Sprintf(" [%s]", info.Time.Duration.String())
|
425
|
425
|
}
|
426
|
426
|
c.Quit(fmt.Sprintf("You are banned from this server (%s)", reason))
|
427
|
|
- c.destroy()
|
|
427
|
+ c.destroy(false)
|
428
|
428
|
return
|
429
|
429
|
}
|
430
|
430
|
|
|
@@ -2016,7 +2016,7 @@ func killHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
2016
|
2016
|
target.exitedSnomaskSent = true
|
2017
|
2017
|
|
2018
|
2018
|
target.Quit(quitMsg)
|
2019
|
|
- target.destroy()
|
|
2019
|
+ target.destroy(false)
|
2020
|
2020
|
return false
|
2021
|
2021
|
}
|
2022
|
2022
|
|
|
@@ -2093,13 +2093,13 @@ func resumeHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
2093
|
2093
|
|
2094
|
2094
|
var timestamp *time.Time
|
2095
|
2095
|
if 1 < len(msg.Params) {
|
2096
|
|
- timestamp, err := time.Parse("2006-01-02T15:04:05.999Z", msg.Params[1])
|
|
2096
|
+ timestamp, err = time.Parse("2006-01-02T15:04:05.999Z", msg.Params[1])
|
2097
|
2097
|
if err != nil {
|
2098
|
2098
|
client.Send(nil, server.name, ERR_CANNOT_RESUME, oldnick, "Timestamp is not in 2006-01-02T15:04:05.999Z format, ignoring it")
|
2099
|
2099
|
}
|
2100
|
2100
|
}
|
2101
|
2101
|
|
2102
|
|
- client.resumeDetails = ResumeDetails{
|
|
2102
|
+ client.resumeDetails = &ResumeDetails{
|
2103
|
2103
|
OldNick: oldnick,
|
2104
|
2104
|
Timestamp: timestamp,
|
2105
|
2105
|
}
|