From: H.G. Muller Date: Wed, 16 Feb 2011 11:03:22 +0000 (+0100) Subject: Fix ICS channel 0 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c2ec1736bf64a623718e6c8fbb25c7aaf4d725e3;p=xboard.git Fix ICS channel 0 Channel 0 messages were not displayed in the console, because the test for channel number considered every non-numeric or non-existent handle in a chatbox to be zero. So the messages were diverted to a non-exsting chatbox. Now it test first for the handle to start with a digit. --- diff --git a/backend.c b/backend.c index d281a92..460a4af 100644 --- a/backend.c +++ b/backend.c @@ -2861,7 +2861,7 @@ read_from_ics(isr, closure, data, count, error) if(channel >= 0) // channel broadcast; look if there is a chatbox for this channel for(p=0; p= '0' && chatPartner[p][0] <= '9' && channel == atoi(chatPartner[p])) { talker[0] = '['; strcat(talker, "] "); Colorize(channel == 1 ? ColorChannel1 : ColorChannel, FALSE); chattingPartner = p; break;