Apologies if I'm in the wrong forum, but I'm sure where the right place is for this.
Here's a minor patch that improves the login error message.
Here's a minor patch that improves the login error message.
Code:
Index: src/net/sourceforge/kolmafia/request/LoginRequest.java
===================================================================
--- src/net/sourceforge/kolmafia/request/LoginRequest.java (revision 8215)
+++ src/net/sourceforge/kolmafia/request/LoginRequest.java (working copy)
@@ -321,7 +321,9 @@
if ( this.responseText.indexOf( "Too many" ) != -1 )
{
// Too many bad logins in too short a time span.
- KoLmafia.updateDisplay( KoLConstants.ABORT_STATE, "Too many failed login attempts." );
+ int pos = this.responseText.indexOf("Too many");
+ int pos2 = this.responseText.indexOf("<",pos+1);
+ KoLmafia.updateDisplay( KoLConstants.ABORT_STATE, this.responseText.substring(pos,pos2));
return;
}