Don't send JSON join message to the main server

This commit is contained in:
Guangcong Luo 2013-05-21 07:05:18 -05:00 committed by Cathy J. Fitzpatrick
parent f2451d949d
commit c00dcc8e23

View File

@ -610,13 +610,13 @@
self.trigger('init:socketopened');
// Join the lobby if it fits on the screen.
// Send the join message even if it doesn't, for legacy servers.
self.send((function() {
var msg = {room: 'lobby'};
if ($(window).width() < 916) {
msg.nojoin = 1;
}
return msg;
})(), 'join');
if (Config.server.id !== 'showdown') {
self.send({room: 'lobby', nojoin: 1}, 'join');
}
if ($(window).width() >= 916) {
self.send('/join lobby');
}
var avatar = Tools.prefs('avatar');
if (avatar) {