From 7ba87263b60bbbc2f8f45215bdb3bcfa3ae20594 Mon Sep 17 00:00:00 2001 From: bustico Date: Thu, 1 Jun 2006 12:07:17 +0000 Subject: fix bug de filtrage --- src/ivybind.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ivybind.c') diff --git a/src/ivybind.c b/src/ivybind.c index 7c5b406..0232a31 100644 --- a/src/ivybind.c +++ b/src/ivybind.c @@ -210,11 +210,14 @@ int IvyBindingFilter(const char *expression) /* extract token */ err = IvyBindingExec( token_extract, expression ); if ( err < 1 ) return 1; - IvyBindingMatch( token_extract, expression , 0, &tokenlen, &token ); + IvyBindingMatch( token_extract, expression , 1, &tokenlen, &token ); for ( i = 0 ; i < messages_classes_count; i++ ) { - if (strncmp( messages_classes[i], token, tokenlen ) == 0) - return 1; + if (strncmp( messages_classes[i], token, tokenlen ) == 0) { + return 1; } + // else { + //printf ("DBG> %s eliminé [%s]\n", token, expression); + //} } } return regexp_ok; -- cgit v1.1