mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Increase autojoin limit
The new limit is now 10, and lobby is now allowed to be autojoined.
This commit is contained in:
parent
511eecae4c
commit
51899f2edc
|
|
@ -1552,11 +1552,11 @@
|
|||
var rooms = this.roomList.concat(this.sideRoomList);
|
||||
for (var i = 0; i < rooms.length; i++) {
|
||||
var room = rooms[i];
|
||||
if (room.type !== 'chat' || room.id === 'lobby') continue;
|
||||
if (room.type !== 'chat') continue;
|
||||
autojoins.push(room.id.indexOf('-') >= 0 ? room.id : (room.title || room.id));
|
||||
if (room.id === 'staff' || room.id === 'upperstaff') continue;
|
||||
autojoinCount++;
|
||||
if (autojoinCount >= 8) break;
|
||||
if (autojoinCount >= 10) break;
|
||||
}
|
||||
Tools.prefs('autojoin', autojoins.join(','));
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user