mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-04 08:03:12 +02:00
64b46a7123
- Changed regexp engine to PCRE. Heads up: May severely break things. You need to ./Config -q; make clean all to get this working. - Laid groundwork for seperated build (onlycommands, commandsandmodules, onlymodules)
21 lines
301 B
C
21 lines
301 B
C
#ifndef __BADWORDS_H
|
|
#define __BADWORDS_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#ifndef _WIN32
|
|
#include "pcreposix.h"
|
|
#else
|
|
#include "win32/regex.h"
|
|
#endif
|
|
|
|
#define MAX_MATCH 1
|
|
#define MAX_WORDLEN 64
|
|
|
|
#define PATTERN "\\w*%s\\w*"
|
|
#define REPLACEWORD "<censored>"
|
|
|
|
#endif
|