This commit is contained in:
shoopea
2021-11-08 22:50:00 +08:00
parent a050893720
commit 38a1d8a898
2 changed files with 5 additions and 5 deletions

2
bot.go
View File

@@ -159,7 +159,7 @@ func botPlayers(m *tb.Message) {
}
offline := ""
for _, cc := range cfg.Clients {
if !cc.Online {
if _, ok := srv.Status.Companies[cc.CompanyID]; ok && !cc.Online {
offline = offline + fmt.Sprintf(" - @%s (%s) : %s", cc.Username, cc.TimeLeft, srv.Status.Companies[cc.CompanyID].Name) + "\r\n"
}
}