mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-25 01:35:20 -05:00
Don't send JSON join message to the main server
This commit is contained in:
parent
f2451d949d
commit
c00dcc8e23
14
js/client.js
14
js/client.js
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user