This commit is contained in:
Andris Reinman 2017-07-31 00:25:53 +03:00
parent 4082b88147
commit b2f410d8db

View file

@ -267,8 +267,9 @@ const serverOptions = {
};
let sendAutoreply = done => {
log.info('dddd', JSON.stringify({ sender, user }));
// never reply to messages marked as spam
if (!sender || !user.autoreply || !user.autoreply.status || !user.autoreply.message || filterActions.get('spam')) {
if (!sender || !user.autoreply || filterActions.get('spam')) {
return setImmediate(done);
}