This commit is contained in:
shoopea 2020-06-26 12:00:19 +02:00
parent 82c50651ac
commit fa5967a463

View File

@ -353,7 +353,7 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
} else {
err = setObjSubTypeId(objId, rule.MsgTypeID64)
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId")
if rule.BotCommand && time.Now().UTC().Add(time.Minute).After(m.Date) {
if rule.BotCommand && time.Now().UTC().After(m.Date.Add(time.Minute)) {
log.Printf("SQLIdentifyMsgWorker[" + strconv.Itoa(id) + "] : Timed out command\n")
} else {
switch rule.MsgTypeID64 {