This commit is contained in:
Flummi 2016-11-02 17:20:52 +01:00
parent 38511be786
commit 7e366f1c21

View File

@ -49,12 +49,12 @@ module.exports = (lib) => {
}); });
} }
else { else {
if(path.existsSync('./b/' + cb.file)) { fs.stat('./b/' + cb.file, (err, stat) => {
fs.unlinkSync('./b/' + cb.file); if(err === null)
if(cb.msg !== '') { fs.unlinkSync('./b/' + cb.file);
if(cb.msg !== '')
e.reply(cb.msg); e.reply(cb.msg);
} });
}
} }
}); });
} }