irssi/src/irc/core/ignore.h
Timo Sirainen 8562737548 completion_msgtoyou() -> irc_nick_match()
Implemented -replies option to /ignore.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@287 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-06-04 12:38:28 +00:00

32 lines
824 B
C

#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 */
int regexp:1;
int fullword:1;
int replies:1; /* ignore replies to nick in channel */
} IGNORE_REC;
extern GSList *ignores;
int ignore_check(IRC_SERVER_REC *server, const char *nick, const char *host,
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