Handle |refresh| message globally

Now the /refreshpage command will no longer have its effects limited to users in Lobby.
This commit is contained in:
Ivo Julca 2015-07-28 17:49:22 -05:00
parent 8bc7c2e5d6
commit 128a8bc9bf
2 changed files with 5 additions and 4 deletions

View File

@ -1161,10 +1161,6 @@
this.addJoinLeave('rename', row[1], row[2], true);
break;
case 'refresh':
// refresh the page
document.location.reload(true);
break;
case 'users':
this.parseUserList(row[1]);

View File

@ -1080,6 +1080,11 @@
}
}
case 'refresh':
// refresh the page
document.location.reload(true);
break;
/* fall through */
default:
// the messagetype wasn't in our list of recognized global