Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
BitchX
GitHub Repository: BitchX/BitchX1.3
Path: blob/master/include/ignore.h
1069 views
1
/*
2
* ignore.h: header for ignore.c
3
*
4
* Written By Michael Sandrof
5
*
6
* Copyright(c) 1990
7
*
8
* See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
9
*/
10
11
#ifndef __ignore_h_
12
#define __ignore_h_
13
14
/* Type of ignored nicks */
15
#define IGNORE_MSGS 0x0001
16
#define IGNORE_PUBLIC 0x0002
17
#define IGNORE_WALLS 0x0004
18
#define IGNORE_WALLOPS 0x0008
19
#define IGNORE_INVITES 0x0010
20
#define IGNORE_NOTICES 0x0020
21
#define IGNORE_NOTES 0x0040
22
#define IGNORE_CTCPS 0x0080
23
24
#define IGNORE_CDCC 0x0100
25
#define IGNORE_KICKS 0x0200
26
#define IGNORE_MODES 0x0400
27
#define IGNORE_SMODES 0x0800
28
#define IGNORE_JOINS 0x1000
29
#define IGNORE_TOPICS 0x2000
30
#define IGNORE_QUITS 0x4000
31
#define IGNORE_PARTS 0x8000
32
#define IGNORE_NICKS 0x10000
33
#define IGNORE_PONGS 0x20000
34
#define IGNORE_SPLITS 0x40000
35
#define IGNORE_CRAP 0x80000
36
37
38
#define IGNORE_ALL (IGNORE_MSGS | IGNORE_PUBLIC | IGNORE_WALLS | \
39
IGNORE_WALLOPS | IGNORE_INVITES | IGNORE_NOTICES | \
40
IGNORE_NOTES | IGNORE_CTCPS | IGNORE_CRAP | \
41
IGNORE_CDCC | IGNORE_KICKS | IGNORE_MODES | \
42
IGNORE_SMODES | IGNORE_JOINS | IGNORE_TOPICS | \
43
IGNORE_QUITS | IGNORE_PARTS | IGNORE_NICKS | \
44
IGNORE_PONGS | IGNORE_SPLITS)
45
46
#define IGNORED 1
47
#define DONT_IGNORE 2
48
#define HIGHLIGHTED -1
49
#define CHANNEL_GREP -2
50
51
extern int ignore_usernames;
52
extern char *highlight_char;
53
extern Ignore *ignored_nicks;
54
55
int is_ignored (char *, long);
56
int check_ignore (char *, char *, char *, long, char *);
57
void ignore (char *, char *, char *, char *);
58
void tignore (char *, char *, char *, char *);
59
void ignore_nickname (char *, long, int);
60
long ignore_type (char *, int);
61
int check_is_ignored(char *);
62
char *get_ignores_by_pattern (char *patterns, int covered);
63
int get_type_by_desc (char *type, int *do_mask, int *dont_mask);
64
char *get_ignore_types (Ignore *tmp);
65
char *get_ignore_types_by_pattern (char *pattern);
66
char *get_ignore_patterns_by_type (char *ctype);
67
68
#endif /* __ignore_h_ */
69
70