From d4565b84b2ab68161269cc725c390bb2fb20d8fb Mon Sep 17 00:00:00 2001 From: bustico Date: Tue, 7 Sep 2004 13:40:32 +0000 Subject: permit case sensisite/insensitive choice for pcre and gnu regexp at Makefile level --- src/ivy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ivy.c') diff --git a/src/ivy.c b/src/ivy.c index 548f9f8..9f78651 100644 --- a/src/ivy.c +++ b/src/ivy.c @@ -376,7 +376,7 @@ static void Receive( Client client, void *data, char *line ) return; } #ifndef USE_PCRE_REGEX - reg = regcomp(®exp, arg, REG_ICASE|REG_EXTENDED); + reg = regcomp(®exp, arg, REGCOMP_OPT|REG_EXTENDED); if ( reg == 0 ) { IVY_LIST_ADD( clnt->msg_send, snd ) @@ -395,7 +395,7 @@ static void Receive( Client client, void *data, char *line ) MsgSendTo( client, Error, reg, errbuf ); } #else - regexp = pcre_compile(arg, 0,&errbuf,&erroffset,NULL); + regexp = pcre_compile(arg, PCRE_OPT,&errbuf,&erroffset,NULL); if ( regexp != NULL ) { IVY_LIST_ADD( clnt->msg_send, snd ) -- cgit v1.1