This commit is contained in:
shoopea 2020-02-05 14:54:30 +08:00
parent 7b859ac266
commit 2645f8d092

3
job.go
View File

@ -595,10 +595,11 @@ func jobPillage(j Job) {
} else { //no /go in the last 30 sec so we go ahead, send one and reschedule to check again in 25sec } else { //no /go in the last 30 sec so we go ahead, send one and reschedule to check again in 25sec
t, err := getObjSubTypeId(r.ObjID64) t, err := getObjSubTypeId(r.ObjID64)
logOnError(err, "jobPillage : getObjSubTypeId") logOnError(err, "jobPillage : getObjSubTypeId")
m, err := getObjMsg(r.ObjID64)
logOnError(err, "jobPillage : getObjMsg")
if t == cacheObjSubType[`msg_pillage_inc`] { if t == cacheObjSubType[`msg_pillage_inc`] {
clientSendCWMsg(j.UserID64, "/go") clientSendCWMsg(j.UserID64, "/go")
} else if t == cacheObjSubType[`msg_pillage_inc2`] { } else if t == cacheObjSubType[`msg_pillage_inc2`] {
m, err := getObjMsg(r.ObjID64)
if len(m.Callbacks) != 1 { if len(m.Callbacks) != 1 {
s := TGCommand{ s := TGCommand{
Type: commandSendMsg, Type: commandSendMsg,