Fix erronous warning

This commit is contained in:
Bryan Ashby 2016-07-09 20:10:03 -06:00
parent af54098f31
commit 1ecc68b250
1 changed files with 1 additions and 1 deletions

View File

@ -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];