test
This commit is contained in:
parent
e1e4b985cd
commit
1ed61ace6e
6
job.go
6
job.go
@ -260,6 +260,7 @@ func jobPillage(j Job) {
|
|||||||
ToUserID64: j.UserID64,
|
ToUserID64: j.UserID64,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- s
|
TGCmdQueue <- s
|
||||||
|
log.Printf("More than one outcome for pillage #%d\n", r.ObjID64)
|
||||||
} else if len(ids) == 1 { // we've got a match, job is done whether we prevented the pillage or not
|
} else if len(ids) == 1 { // we've got a match, job is done whether we prevented the pillage or not
|
||||||
m, err := getMsg(ids[0])
|
m, err := getMsg(ids[0])
|
||||||
logOnError(err, "jobPillage : getMsg(objSubTypeMessagePillageGo, objSubTypeMessagePillageTimeout)")
|
logOnError(err, "jobPillage : getMsg(objSubTypeMessagePillageGo, objSubTypeMessagePillageTimeout)")
|
||||||
@ -275,6 +276,7 @@ func jobPillage(j Job) {
|
|||||||
ToUserID64: j.UserID64,
|
ToUserID64: j.UserID64,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- s
|
TGCmdQueue <- s
|
||||||
|
log.Printf("jobPillage : objSubTypeMessagePillageGo\n", r.ObjID64)
|
||||||
} else if msgTypeID64 == objSubTypeMessagePillageWin {
|
} else if msgTypeID64 == objSubTypeMessagePillageWin {
|
||||||
s := TGCommand{
|
s := TGCommand{
|
||||||
Type: commandSendMsg,
|
Type: commandSendMsg,
|
||||||
@ -282,6 +284,7 @@ func jobPillage(j Job) {
|
|||||||
ToUserID64: j.UserID64,
|
ToUserID64: j.UserID64,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- s
|
TGCmdQueue <- s
|
||||||
|
log.Printf("jobPillage : objSubTypeMessagePillageWin\n", r.ObjID64)
|
||||||
} else if msgTypeID64 == objSubTypeMessagePillageLoss {
|
} else if msgTypeID64 == objSubTypeMessagePillageLoss {
|
||||||
s := TGCommand{
|
s := TGCommand{
|
||||||
Type: commandSendMsg,
|
Type: commandSendMsg,
|
||||||
@ -289,6 +292,7 @@ func jobPillage(j Job) {
|
|||||||
ToUserID64: j.UserID64,
|
ToUserID64: j.UserID64,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- s
|
TGCmdQueue <- s
|
||||||
|
log.Printf("jobPillage : objSubTypeMessagePillageLoss\n", r.ObjID64)
|
||||||
} else if msgTypeID64 == objSubTypeMessagePillageTimeout {
|
} else if msgTypeID64 == objSubTypeMessagePillageTimeout {
|
||||||
s := TGCommand{
|
s := TGCommand{
|
||||||
Type: commandSendMsg,
|
Type: commandSendMsg,
|
||||||
@ -296,6 +300,7 @@ func jobPillage(j Job) {
|
|||||||
ToUserID64: j.UserID64,
|
ToUserID64: j.UserID64,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- s
|
TGCmdQueue <- s
|
||||||
|
log.Printf("jobPillage : objSubTypeMessagePillageTimeout\n", r.ObjID64)
|
||||||
} else {
|
} else {
|
||||||
s := TGCommand{
|
s := TGCommand{
|
||||||
Type: commandSendMsg,
|
Type: commandSendMsg,
|
||||||
@ -303,6 +308,7 @@ func jobPillage(j Job) {
|
|||||||
ToUserID64: j.UserID64,
|
ToUserID64: j.UserID64,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- s
|
TGCmdQueue <- s
|
||||||
|
log.Printf("jobPillage : We don't know what happened\n", r.ObjID64)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user