Use GLib's regexp interface (backed by PCRE)

This commit is contained in:
LemonBoy 2016-01-14 14:10:00 +01:00 committed by Ailin Nemui
commit 8e5db471e4
7 changed files with 43 additions and 88 deletions

View file

@ -58,10 +58,8 @@ 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 HAVE_REGEX_H
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 ");