summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx
index ef72bd1..2d1f937 100644
--- a/Ivy/IvyApplication.cxx
+++ b/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() );