This commit is contained in:
shoopea 2020-01-09 16:14:37 +08:00
parent e90f20fcb0
commit 7b674337c3

View File

@ -44,10 +44,14 @@ func cronSendWarReport() {
func cronTribute() {
muxClients.RLock()
for _, c := range clients {
if c.Active && c.CWClass == `Knight` {
if c.Active {
log.Printf("cronTribute : class %s (%s)\n", c.CWClass, c.Login)
if c.CWClass == `Knight` {
log.Printf("cronTribute : sending tribute\n", c.CWClass, c.Login)
clientSendCWMsgDelay(c.TGUserID64, `/tributes`, 0)
}
}
}
muxClients.RUnlock()
return
}