X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=206676d4368b68cc7a603e7a2d32cd1ba4ef6637;hb=becc619fe5f9413393ee1b21951687323a6e32e4;hp=c33c164ba9f9727a66827376321884eba9888b07;hpb=398df75992ba050823ce8fda5e55735d03b8a9be;p=xboard.git diff --git a/backend.c b/backend.c index c33c164..206676d 100644 --- a/backend.c +++ b/backend.c @@ -2740,6 +2740,9 @@ read_from_ics(isr, closure, data, count, error) channel = -1; if(started == STARTED_NONE && (looking_at(buf, &i, "* tells you:") || looking_at(buf, &i, "* says:") || looking_at(buf, &i, "* whispers:") || + looking_at(buf, &i, "* shouts:") || + looking_at(buf, &i, "* c-shouts:") || + looking_at(buf, &i, "--> * ") || 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[3], "%d", &channel),1) || @@ -2757,10 +2760,19 @@ read_from_ics(isr, closure, data, count, error) } else if(buf[i-3] == 'r') // whisper; look if there is a WHISPER chatbox for(p=0; p') // shout, c-shout or it; look if there is a 'shouts' chatbox + for(p=0; p') { talker[0] = '<'; strcat(talker, "> "); } + else if(buf[i-8] == '-') { talker[0] = '('; strcat(talker, ") "); } + else { talker[0] = '['; strcat(talker, "] "); } + chattingPartner = p; break; + } } if(chattingPartner<0) // if not, look if there is a chatbox for this indivdual for(p=0; p