2000-04-26 04:03:38 -04:00
|
|
|
#ifndef __IGNORE_H
|
|
|
|
#define __IGNORE_H
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *mask; /* nick mask */
|
|
|
|
char *servertag; /* this is for autoignoring */
|
|
|
|
char **channels; /* ignore only in these channels */
|
|
|
|
char *pattern; /* text body must match this pattern */
|
|
|
|
|
|
|
|
int level; /* ignore these levels */
|
|
|
|
int except_level; /* don't ignore these levels */
|
|
|
|
|
2000-07-23 10:41:42 -04:00
|
|
|
int time; /* time in sec for temp ignores */
|
|
|
|
int time_tag;
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
int regexp:1;
|
|
|
|
int fullword:1;
|
2000-06-04 08:38:28 -04:00
|
|
|
int replies:1; /* ignore replies to nick in channel */
|
2000-04-26 04:03:38 -04:00
|
|
|
} IGNORE_REC;
|
|
|
|
|
|
|
|
extern GSList *ignores;
|
|
|
|
|
2000-10-09 19:40:18 -04:00
|
|
|
int ignore_check(SERVER_REC *server, const char *nick, const char *host,
|
2000-04-26 04:03:38 -04:00
|
|
|
const char *channel, const char *text, int level);
|
|
|
|
|
|
|
|
IGNORE_REC *ignore_find(const char *servertag, const char *mask, char **channels);
|
|
|
|
|
|
|
|
void ignore_add_rec(IGNORE_REC *rec);
|
|
|
|
void ignore_update_rec(IGNORE_REC *rec);
|
|
|
|
|
|
|
|
void ignore_init(void);
|
|
|
|
void ignore_deinit(void);
|
|
|
|
|
|
|
|
#endif
|