From 1ecc68b2503675f45166f8de6f4f9756cfb1cca0 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 9 Jul 2016 20:10:03 -0600 Subject: [PATCH] Fix erronous warning --- core/scanner_tossers/ftn_bso.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scanner_tossers/ftn_bso.js b/core/scanner_tossers/ftn_bso.js index 0bc4621b..9a30bfd2 100644 --- a/core/scanner_tossers/ftn_bso.js +++ b/core/scanner_tossers/ftn_bso.js @@ -784,7 +784,7 @@ function FTNMessageScanTossModule() { } Message.getMessageIdsByMetaValue('FtnKludge', 'MSGID', message.meta.FtnKludge.REPLY, (err, msgIds) => { - if(msgIds) { + if(msgIds && msgIds.length > 0) { // expect a single match, but dupe checking is not perfect - warn otherwise if(1 === msgIds.length) { message.replyToMsgId = msgIds[0];