Stop reporting failed assertions

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.
This commit is contained in:
Guangcong Luo
2018-10-28 11:47:21 -04:00
parent ba4c512166
commit 0e5b3aa84c

View File

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