1
0
Fork 0
forked from External/ergo

Fix KLINE quit/error message and corrects comment on Client.Quit

This commit is contained in:
Daniel Oaks 2017-10-16 10:48:05 +10:00
parent 7ccb485b50
commit 8910dc59ee
2 changed files with 2 additions and 2 deletions

View file

@ -415,7 +415,7 @@ func (server *Server) tryRegister(c *Client) {
if info.Time != nil {
reason += fmt.Sprintf(" [%s]", info.Time.Duration.String())
}
c.Send(nil, "", "ERROR", fmt.Sprintf("You are banned from this server (%s)", reason))
c.Quit(fmt.Sprintf("You are banned from this server (%s)", reason))
c.destroy()
return
}