Show main menu when failing to join any room

This commit is contained in:
Cathy J. Fitzpatrick
2013-05-25 05:21:16 -05:00
parent 685910046d
commit cab5488541

View File

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