return TRUE;
}
+int remoteEchoOption = FALSE; /* telnet ECHO option */
+
void
read_from_ics (InputSourceRef isr, VOIDSTAR closure, char *data, int count, int error)
{
telnet server that will try to keep WILL ECHO on permanently.
*/
if (buf_len - i >= 3 && (unsigned char) buf[i] == TN_IAC) {
- static int remoteEchoOption = FALSE; /* telnet ECHO option */
unsigned char option;
oldi = i;
switch ((unsigned char) buf[++i]) {
extern ChessProgramStats_Move pvInfoList[MAX_MOVES];
extern Boolean shuffleOpenings;
extern ChessProgramStats programStats;
+extern int remoteEchoOption;
extern int opponentKibitzes; // used by wengineo.c
extern int errorExitStatus;
extern char *recentEngines;
// from here on it could be back-end
if(line[strlen(line)-1] == '\n') line[strlen(line)-1] = NULLCHAR;
SaveInHistory(line);
- if(hidden || !*chatPartner[activePartner]) snprintf(buf, MSG_SIZ, "%s\n", line); else // command for ICS
- if(!strcmp("whispers", chatPartner[activePartner]))
+ if(hidden || !*chatPartner[activePartner]) { // command for ICS
+ snprintf(buf, MSG_SIZ, "%s\n", line);
+ if(!remoteEchoOption) ConsoleWrite(buf, strlen(buf));
+ } else if(!strcmp("whispers", chatPartner[activePartner]))
snprintf(buf, MSG_SIZ, "whisper %s\n", line); // WHISPER box uses "whisper" to send
else if(!strcmp("shouts", chatPartner[activePartner]))
snprintf(buf, MSG_SIZ, "shout %s\n", line); // SHOUT box uses "shout" to send