mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
DISCONNECT Sno for always-on and/or multiclient
This commit is contained in:
parent
62d78a64cb
commit
99cb1fd02c
5 changed files with 12 additions and 6 deletions
|
|
@ -1310,6 +1310,9 @@ func (client *Client) destroy(session *Session) {
|
|||
client.server.connectionLimiter.RemoveClient(flatip.FromNetIP(ip))
|
||||
source = ip.String()
|
||||
}
|
||||
if !shouldDestroy {
|
||||
client.server.snomasks.Send(sno.LocalDisconnects, fmt.Sprintf(ircfmt.Unescape("Client session disconnected for [a:%s] [h:%s] [ip:%s]"), details.accountName, session.rawHostname, source))
|
||||
}
|
||||
client.server.logger.Info("connect-ip", fmt.Sprintf("disconnecting session of %s from %s", details.nick, source))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue