summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ivy.c2
-rw-r--r--src/ivybind.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/ivy.c b/src/ivy.c
index 157cf08..a0c51c7 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -196,7 +196,7 @@ static int MsgCall (const char *message, MsgSndPtr msg, IvyClientPtr client)
TRACE( "Send matching args count %d\n",rc);
- for( index=0; index < rc ; index++ )
+ for( index=1; index < rc ; index++ )
{
IvyBindingMatch( msg->binding, message, index, &arglen, & arg );
err = make_message_var( &buffer, "%.*s" ARG_END , arglen, arg );
diff --git a/src/ivybind.c b/src/ivybind.c
index 20e174f..e7d126a 100644
--- a/src/ivybind.c
+++ b/src/ivybind.c
@@ -142,8 +142,6 @@ int IvyBindingExec( IvyBinding bind, const char * message )
OVECSIZE);
if (nb_match<1) return 0; /* no match */
bind->nb_match = nb_match;
- nb_match--; // firts arg wall string ???
-
#else /* we don't USE_PCRE_REGEX */
memset( bind->match, -1, sizeof(bind->match )); /* work around bug !!!*/
nb_match = regexec (&bind->regexp, message, MAX_MSG_FIELDS, bind->match, 0)