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)

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "37310c4"
var buildstamp = "2021-11-22_08:57:20"
var commits = "201"
var version = "37310c4-b201 - 2021-11-22_08:57:20"
var githash = "440e45f"
var buildstamp = "2021-11-22_08:59:46"
var commits = "202"
var version = "440e45f-b202 - 2021-11-22_08:59:46"