timing out message

This commit is contained in:
shoopea
2021-11-22 16:59:56 +08:00
parent 440e45fc29
commit 62974dc19c
2 changed files with 5 additions and 4 deletions

1
ttd.go
View File

@@ -573,6 +573,7 @@ func (s *ServerTTD) PruneClients() {
cc := cfg.GetCompanyClient(clt.CompanyID)
if cc.Online {
cc.Online = false
bot.SendChat(cfg.Telegram.ChatID, fmt.Sprintf("@%s timed out.", cc.Username))
}
}
delete(s.Status.Clients, cltID)