diff --git a/file/lib/system/command/commands/WhereCommand.class.php b/file/lib/system/command/commands/WhereCommand.class.php index 5b3ae2d..1d8b1d5 100644 --- a/file/lib/system/command/commands/WhereCommand.class.php +++ b/file/lib/system/command/commands/WhereCommand.class.php @@ -25,6 +25,8 @@ public function getMessage() { $rooms = \chat\data\room\RoomCache::getInstance()->getRooms(); foreach ($rooms as $room) { + if (!$room->canEnter()) continue; + $users = $room->getUsers(); $tmp = array(); foreach ($users as $user) {