don't say you deleted database entries if you didn't

This commit is contained in:
ansuz 2016-05-14 13:14:55 +02:00
parent 1b2c129380
commit 2d3ed84f5d

View File

@ -69,7 +69,9 @@ dropUser = function (ctx, user) {
ctx.timeouts[chanName] = setTimeout(function () {
ctx.store.removeChannel(chanName, function (err) {
if (err) { console.error("[removeChannelErr]: %s", err); }
console.log("Deleted channel [%s] history from database...", chanName);
else {
console.log("Deleted channel [%s] history from database...", chanName);
}
});
}, ctx.config.channelRemovalTimeout);
}