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 {
if(path.existsSync('./b/' + cb.file)) {
fs.unlinkSync('./b/' + cb.file);
if(cb.msg !== '') {
fs.stat('./b/' + cb.file, (err, stat) => {
if(err === null)
fs.unlinkSync('./b/' + cb.file);
if(cb.msg !== '')
e.reply(cb.msg);
}
}
});
}
});
}