X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=4c9390e6ead079cc5d77c78b1c07d0c3b2f781dd;hb=36068bf366e116bd742f5e3d4f524358efc62fff;hp=bc35e345fb248bda07ea73482b6c73ed4812291d;hpb=3b417f05cba6e7b573d351790ef28cc2476fc407;p=xboard.git diff --git a/backend.c b/backend.c index bc35e34..4c9390e 100644 --- a/backend.c +++ b/backend.c @@ -448,9 +448,6 @@ long lastNodeCount=0; int shiftKey; // [HGM] set by mouse handler int have_sent_ICS_logon = 0; -int sending_ICS_login = 0; -int sending_ICS_password = 0; - int movesPerSession; int suddenDeath, whiteStartMove, blackStartMove; /* [HGM] for implementation of 'any per time' sessions, as in first part of byoyomi TC */ long whiteTimeRemaining, blackTimeRemaining, timeControl, timeIncrement, lastWhite, lastBlack; @@ -3116,17 +3113,10 @@ read_from_ics(isr, closure, data, count, error) if (!have_sent_ICS_logon && looking_at(buf, &i, "login:")) { ICSInitScript(); have_sent_ICS_logon = 1; - sending_ICS_password = 0; // in case we come back to login - sending_ICS_login = 1; continue; } - /* need to shadow the password */ - if (!sending_ICS_password && looking_at(buf, &i, "password:")) { - sending_ICS_password = 1; - continue; - } - - if (ics_getting_history != H_GETTING_MOVES /*smpos kludge*/ && + + if (ics_getting_history != H_GETTING_MOVES /*smpos kludge*/ && (looking_at(buf, &i, "\n<12> ") || looking_at(buf, &i, "<12> "))) { loggedOn = TRUE;