From 22464af6a5b1167a4281caf41ef7b4439843917f Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 12 Oct 2016 10:39:46 +0200 Subject: [PATCH] fix reference to incorrect config flag --- NetfluxWebsocketSrv.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NetfluxWebsocketSrv.js b/NetfluxWebsocketSrv.js index 02a8f8b19..b15cdd33b 100644 --- a/NetfluxWebsocketSrv.js +++ b/NetfluxWebsocketSrv.js @@ -82,12 +82,12 @@ dropUser = function (ctx, user) { let idx = chan.indexOf(user); if (idx < 0) { return; } - if (ctx.verbose) { + if (ctx.config.verbose) { console.log("Removing ["+user.id+"] from channel ["+chanName+"]"); } chan.splice(idx, 1); if (chan.length === 0) { - if (ctx.verbose) { + if (ctx.config.verbose) { console.log("Removing empty channel ["+chanName+"]"); } delete ctx.channels[chanName]; @@ -101,7 +101,7 @@ dropUser = function (ctx, user) { ctx.store.removeChannel(chanName, function (err) { if (err) { console.error("[removeChannelErr]: %s", err); } else { - if (ctx.verbose) { + if (ctx.config.verbose) { console.log("Deleted channel [%s] history from database...", chanName); } }