Skip to content

Commit

Permalink
Stop reporting failed assertions
Browse files Browse the repository at this point in the history
We had a great run, but honestly I don't have anything particularly
interesting to do with this data, so I'm turning it off now.
  • Loading branch information
Zarel committed Oct 28, 2018
1 parent 2193d51 commit 113cd27
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,7 @@
if (assertion.charAt(0) === '\r') assertion = assertion.slice(1);
if (assertion.charAt(0) === '\n') assertion = assertion.slice(1);
if (assertion.indexOf('<') >= 0) {
if (assertion.indexOf('accessdenied') >= 0) {
app.addPopupMessage("Your internet filter is blocking Pokémon Showdown.");
return;
}
app.addPopupMessage("Something is interfering with our connection to the login server.");
assertion = assertion.replace(/[\r\n]+/g, ' ');
// send to server anyway in case server knows how to deal with it
app.send('/trn ' + name + ',0,' + assertion);
app.addPopupMessage("Something is interfering with our connection to the login server. Most likely, your internet provider needs you to re-log-in, or your internet provider is blocking Pokémon Showdown.");
return;
}
if (assertion === ';') {
Expand Down

0 comments on commit 113cd27

Please sign in to comment.