mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Hide group chats from /tours
This commit is contained in:
parent
3cf80bf579
commit
688b566daf
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user