Skip to content

Commit

Permalink
Autojoin lobby on unregistered servers (smogon#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoeenCoder authored and Zarel committed Jan 30, 2017
1 parent d02659f commit 2f61b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
this.addRoom('lobby', null, true);
}
Storage.whenPrefsLoaded(function () {
if (!Config.server.registered) return;
if (!Config.server.registered) return app.send('/autojoin');
var autojoin = (Tools.prefs('autojoin') || '');
var autojoinIds = [];
if (typeof autojoin === 'string') {
Expand Down

0 comments on commit 2f61b7d

Please sign in to comment.