summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
authorbustico2004-09-07 13:40:32 +0000
committerbustico2004-09-07 13:40:32 +0000
commitd4565b84b2ab68161269cc725c390bb2fb20d8fb (patch)
treee2721182270e894f28ba9f77c310b75344624e6d /src/ivy.c
parenta713fb80ed3ef52d2596239870ec5fcccf8d45c3 (diff)
downloadivy-c-d4565b84b2ab68161269cc725c390bb2fb20d8fb.zip
ivy-c-d4565b84b2ab68161269cc725c390bb2fb20d8fb.tar.gz
ivy-c-d4565b84b2ab68161269cc725c390bb2fb20d8fb.tar.bz2
ivy-c-d4565b84b2ab68161269cc725c390bb2fb20d8fb.tar.xz
permit case sensisite/insensitive choice for pcre and gnu regexp at Makefile
level
Diffstat (limited to 'src/ivy.c')
-rw-r--r--src/ivy.c4
1 files changed, 2 insertions, 2 deletions
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(&regexp, arg, REG_ICASE|REG_EXTENDED);
+ reg = regcomp(&regexp, 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 )