update
This commit is contained in:
2
bot.go
2
bot.go
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user