diff options
| author | C. McEnroe | 2021-01-16 13:30:59 -0500 | 
|---|---|---|
| committer | C. McEnroe | 2021-01-16 13:36:39 -0500 | 
| commit | 5a490945ea221cc94b05e2ed6e872a2ecbefe175 (patch) | |
| tree | daf471ca256c4112e78c9ff35795609e96fa969b /chat.h | |
| parent | 6160b3f18c66738ea5c927b6ced3ae981586b7bc (diff) | |
Rename ignore code to filter
Diffstat (limited to 'chat.h')
| -rw-r--r-- | chat.h | 15 | 
1 files changed, 8 insertions, 7 deletions
| @@ -361,17 +361,18 @@ void urlCopyMatch(uint id, const char *str);  int urlSave(FILE *file);  void urlLoad(FILE *file, size_t version); -enum { IgnoreCap = 64 }; -extern struct Ignore { +enum { FilterCap = 64 }; +extern struct Filter { +	enum Heat heat;  	char *mask;  	char *cmd;  	char *chan;  	char *mesg; -} ignores[IgnoreCap]; -struct Ignore ignoreParse(char *pattern); -struct Ignore ignoreAdd(const char *pattern); -bool ignoreRemove(struct Ignore ignore); -enum Heat ignoreCheck(enum Heat heat, uint id, const struct Message *msg); +} filters[FilterCap]; +struct Filter filterParse(enum Heat heat, char *pattern); +struct Filter filterAdd(enum Heat heat, const char *pattern); +bool filterRemove(struct Filter filter); +enum Heat filterCheck(enum Heat heat, uint id, const struct Message *msg);  extern bool logEnable;  void logFormat(uint id, const time_t *time, const char *format, ...) | 
