This commit is contained in:
Flummi 2018-05-26 00:07:10 +00:00
parent 903ec7f2d6
commit 17a726fe2b

View File

@ -171,7 +171,7 @@ module.exports = (lib) => {
}
dat
.once('finish', () => {
.on('finish', () => {
var size = dat.bytesWritten;
dat.end();
if( ( size <= lib.cfg.main.maxFileSize ) || force || ( userlevel >= 60 && size <= (lib.cfg.main.maxFileSize * 2) ) ) {