diff --git a/lib/api.js b/lib/api.js index db35209a..cf7fe407 100644 --- a/lib/api.js +++ b/lib/api.js @@ -167,7 +167,7 @@ module.exports = function (Server) { var channels = []; for(var key in Server.channels) { var channel = Server.channels[key]; - if(channel.opts.show_public) + if(channel.opts.show_public && channel.opts.password === false) channels.push(getChannelData(channel)); }