fix command

This commit is contained in:
shoopea 2020-06-25 17:40:36 +02:00
parent 5e40b6eb5f
commit cf18be8a87

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 {
if rule.BotCommand && time.Now().UTC().Add(time.Minute).After(m.Date) {
log.Printf("SQLIdentifyMsgWorker[" + strconv.Itoa(id) + "] : Timed out command\n")
} else {
switch rule.MsgTypeID64 {