X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=afd2196c23dd69226e036c89f5d4f9141bd48fe8;hb=9aaa181a2accf39561c7da63947121669e0e657c;hp=2965507e9390512f476b7f7f71b6608719c4a6b7;hpb=3ee26c011464ede33114f0d166cca0e8fb1f86b2;p=xboard.git diff --git a/backend.c b/backend.c index 2965507..afd2196 100644 --- a/backend.c +++ b/backend.c @@ -1549,6 +1549,10 @@ StringToVariant(e) while( *e++ != '_'); } + if(StrCaseStr(e, "misc/")) { // [HGM] on FICS, misc/shogi is not shogi + v = VariantNormal; + found = TRUE; + } else for (i=0; i= 5 && buf[buf_len-5]=='\n' && buf[buf_len-4]=='\\' && + if(!appData.noJoin && buf_len >= 5 && buf[buf_len-5]=='\n' && buf[buf_len-4]=='\\' && buf[buf_len-3]==' ' && buf[buf_len-2]==' ' && buf[buf_len-1]==' ') { buf_len -= 5; // [HGM] ICS: join continuation line of Lasker 2.2.3 server with previous if(buf_len == 0 || buf[buf_len-1] != ' ') @@ -2214,6 +2218,7 @@ read_from_ics(isr, closure, data, count, error) sprintf(str, "/set-quietly interface %s\n/set-quietly style 12\n", programVersion); + strcat(str, "/set-quietly wrap 0\n"); } else if (ics_type == ICS_CHESSNET) { sprintf(str, "/style 12\n"); @@ -2224,10 +2229,11 @@ read_from_ics(isr, closure, data, count, error) #ifdef WIN32 strcat(str, "$iset nohighlight 1\n"); #endif + strcat(str, "$iset nowrap 1\n"); strcat(str, "$iset lock 1\n$style 12\n"); - NotifyFrontendLogin(); } SendToICS(str); + NotifyFrontendLogin(); intfSet = TRUE; }