mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Show main menu when failing to join any room
This commit is contained in:
@@ -834,6 +834,14 @@
|
||||
}
|
||||
break;
|
||||
|
||||
case 'roomerror':
|
||||
if (!this.curRoom && !this.curSideRoom) {
|
||||
// if we fail to join any room, show the main menu
|
||||
this.tryJoinRoom('');
|
||||
}
|
||||
this.addPopupMessage(parts.slice(2).join('|'));
|
||||
break;
|
||||
|
||||
default:
|
||||
if (data.substr(0,6) === '|init|') {
|
||||
this.addRoom('lobby');
|
||||
|
||||
Reference in New Issue
Block a user