another bugfix

This commit is contained in:
Flummi 2016-11-02 17:27:40 +01:00
parent 7e366f1c21
commit 2788ad9e38

View File

@ -50,7 +50,7 @@ module.exports = (lib) => {
}
else {
fs.stat('./b/' + cb.file, (err, stat) => {
if(err === null)
if(err === null || err.code == 'ENOENT')
fs.unlinkSync('./b/' + cb.file);
if(cb.msg !== '')
e.reply(cb.msg);