X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=fd2aebb7206349ca6190d939a822ced9ed94b1b8;hb=c187d44b624a0aa909c8eb20d1d3a4a8cb203e17;hp=4abcc4a42e04535dbd2a7dc8fa5092f6b3683217;hpb=1cef4c7bc66248cfa1ab9e33ddfa336f9e083183;p=xboard.git diff --git a/backend.c b/backend.c index 4abcc4a..fd2aebb 100644 --- a/backend.c +++ b/backend.c @@ -2730,7 +2730,9 @@ read_from_ics(isr, closure, data, count, error) if(started == STARTED_NONE && (looking_at(buf, &i, "* tells you:") || looking_at(buf, &i, "* says:") || looking_at(buf, &i, "* whispers:") || looking_at(buf, &i, "*(*):") && (sscanf(star_match[1], "%d", &channel),1) || - looking_at(buf, &i, "*(*)(*):") && sscanf(star_match[2], "%d", &channel) == 1 )) { + looking_at(buf, &i, "*(*)(*):") && (sscanf(star_match[2], "%d", &channel),1) || + looking_at(buf, &i, "*(*)(*)(*):") && (sscanf(star_match[3], "%d", &channel),1) || + looking_at(buf, &i, "*(*)(*)(*)(*):") && sscanf(star_match[4], "%d", &channel) == 1 )) { int p; sscanf(star_match[0], "%[^(]", talker+1); // strip (C) or (U) off ICS handle chattingPartner = -1;