From c2ec1736bf64a623718e6c8fbb25c7aaf4d725e3 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 16 Feb 2011 12:03:22 +0100 Subject: [PATCH] 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. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.0.4