Hide group chats from /tours

This commit is contained in:
The Immortal 2015-09-24 16:09:30 +04:00
parent 3cf80bf579
commit 688b566daf

View File

@ -903,7 +903,7 @@ CommandParser.commands.tournament = function (paramString, room, user) {
if (!this.canBroadcast()) return;
this.sendReply('|tournaments|info|' + JSON.stringify(Object.keys(exports.tournaments).filter(function (tournament) {
tournament = exports.tournaments[tournament];
return !tournament.room.isPrivate && !tournament.room.staffRoom;
return !tournament.room.isPrivate && !tournament.room.isPersonal && !tournament.room.staffRoom;
}).map(function (tournament) {
tournament = exports.tournaments[tournament];
return {room: tournament.room.title, format: tournament.format, generator: tournament.generator.name, isStarted: tournament.isTournamentStarted};