From 6fbf1d74abfa58129357b9f833c8a17a7f6296c1 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:59:45 +0000 Subject: Utilisateur : Fcolin Date : 19/02/01 Heure : 10:37 Archivé dans $/Ivy (vss 9) --- Bus/Ivy/IvyApplication.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Bus/Ivy/IvyApplication.cxx') diff --git a/Bus/Ivy/IvyApplication.cxx b/Bus/Ivy/IvyApplication.cxx index ef72bd1..2d1f937 100644 --- a/Bus/Ivy/IvyApplication.cxx +++ b/Bus/Ivy/IvyApplication.cxx @@ -11,7 +11,7 @@ #include "IvyApplication.h" #include "Regexp.h" -#define IVY_DEBUG +//#define IVY_DEBUG #define ARG_START "\002" #define ARG_END "\003" @@ -137,6 +137,9 @@ void IvyApplication::OnReceive(char * line) } regexp_in.reserve( id +1 ); regexp_in[ id ] = exp; +#ifdef IVY_DEBUG + TRACE("Adding regexp[%d]='%s'\n",id,arg); +#endif //IVY_DEBUG break; case DelRegexp: @@ -277,9 +280,9 @@ int IvyApplication::SendMsg(const char *message) if ( exp && exp->Match( message ) ) { string buffer; - for ( int i = 1; i < exp->SubStrings()+1; i++ ) + for ( int j = 1; j < exp->SubStrings()+1; j++ ) { - buffer += (*exp)[i]; + buffer += (*exp)[j]; buffer += ARG_END; } SendMsg( Msg, i, buffer.c_str() ); -- cgit v1.1