fix reference to incorrect config flag
This commit is contained in:
parent
e739c49e7f
commit
22464af6a5
@ -82,12 +82,12 @@ dropUser = function (ctx, user) {
|
|||||||
let idx = chan.indexOf(user);
|
let idx = chan.indexOf(user);
|
||||||
if (idx < 0) { return; }
|
if (idx < 0) { return; }
|
||||||
|
|
||||||
if (ctx.verbose) {
|
if (ctx.config.verbose) {
|
||||||
console.log("Removing ["+user.id+"] from channel ["+chanName+"]");
|
console.log("Removing ["+user.id+"] from channel ["+chanName+"]");
|
||||||
}
|
}
|
||||||
chan.splice(idx, 1);
|
chan.splice(idx, 1);
|
||||||
if (chan.length === 0) {
|
if (chan.length === 0) {
|
||||||
if (ctx.verbose) {
|
if (ctx.config.verbose) {
|
||||||
console.log("Removing empty channel ["+chanName+"]");
|
console.log("Removing empty channel ["+chanName+"]");
|
||||||
}
|
}
|
||||||
delete ctx.channels[chanName];
|
delete ctx.channels[chanName];
|
||||||
@ -101,7 +101,7 @@ dropUser = function (ctx, user) {
|
|||||||
ctx.store.removeChannel(chanName, function (err) {
|
ctx.store.removeChannel(chanName, function (err) {
|
||||||
if (err) { console.error("[removeChannelErr]: %s", err); }
|
if (err) { console.error("[removeChannelErr]: %s", err); }
|
||||||
else {
|
else {
|
||||||
if (ctx.verbose) {
|
if (ctx.config.verbose) {
|
||||||
console.log("Deleted channel [%s] history from database...", chanName);
|
console.log("Deleted channel [%s] history from database...", chanName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user