switch for gregex and regex.h

This commit is contained in:
Ailin Nemui 2017-01-03 12:04:56 +01:00
commit f5cbbebc2e
8 changed files with 133 additions and 2 deletions

View file

@ -58,8 +58,13 @@ static void ignore_print(int index, IGNORE_REC *rec)
g_string_append(options, "-regexp ");
if (rec->pattern == NULL)
g_string_append(options, "[INVALID! -pattern missing] ");
#ifdef USE_GREGEX
else if (rec->preg == NULL)
g_string_append(options, "[INVALID!] ");
#else
else if (!rec->regexp_compiled)
g_string_append(options, "[INVALID!] ");
#endif
}
if (rec->fullword) g_string_append(options, "-full ");
if (rec->replies) g_string_append(options, "-replies ");