This commit is contained in:
Flummi 2018-01-10 12:15:43 +00:00
parent b1cd2a1e58
commit 2b3b17f54c

View File

@ -41,7 +41,7 @@ module.exports = (lib) => {
lib.generateThumbs(); lib.generateThumbs();
e.reply(lib.cfg.main.url+"/"+result.insertId+" - "+cb.info.title+" ("+cb.info.mime+", ~"+lib.formatSize(cb.size)+") by "+cbgu['nick']+" ("+cbgu['username']+"@"+cbgu['hostname']+")"); e.reply(lib.cfg.main.url+"/"+result.insertId+" - "+cb.info.title+" ("+cb.info.mime+", ~"+lib.formatSize(cb.size)+") by "+cbgu['nick']+" ("+cbgu['username']+"@"+cbgu['hostname']+")");
}).on('error', (msg) => { }).on('error', (msg) => {
e.reply(msg.error.reason); e.reply("ups");
}); });
}); });
} }
@ -165,7 +165,7 @@ module.exports = (lib) => {
} }
else { else {
dat.end(); dat.end();
cb({ success: false, file: tmpdest, msg: err }); cb({ success: false, file: tmpdest, msg: 'nope.' });
} }
}); });
} }