Increase autojoin limit

The new limit is now 10, and lobby is now allowed to be autojoined.
This commit is contained in:
Guangcong Luo 2016-01-04 12:47:21 -05:00
parent 511eecae4c
commit 51899f2edc

View File

@ -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(','));
},