mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-26 03:46:38 +02:00
73810a4f82
is called by stripbadwords_channel()/stripbadwords_message().
21 lines
310 B
C
21 lines
310 B
C
#ifndef __BADWORDS_H
|
|
#define __BADWORDS_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#ifdef HAVE_REGEX
|
|
#include <regex.h>
|
|
#else
|
|
#include "../extras/regex/regex.h"
|
|
#endif
|
|
|
|
#define MAX_MATCH 1
|
|
#define MAX_WORDLEN 64
|
|
|
|
#define PATTERN "\\w*%s\\w*"
|
|
#define REPLACEWORD "<censored>"
|
|
|
|
#endif
|