imported.
[crypto.git] / apps / irssi / src / core / levels.h
1 #ifndef __LEVELS_H
2 #define __LEVELS_H
3
4 /* This is pretty much IRC specific, but I think it would be easier for
5    other chats to try to use these same levels instead of implementing too
6    difficult message leveling system (which might be done if really
7    needed..). */
8
9 /* Message levels */
10 #define MSGLEVEL_CRAP         0x0000001
11 #define MSGLEVEL_MSGS         0x0000002
12 #define MSGLEVEL_PUBLIC       0x0000004
13 #define MSGLEVEL_NOTICES      0x0000008
14 #define MSGLEVEL_SNOTES       0x0000010
15 #define MSGLEVEL_CTCPS        0x0000020
16 #define MSGLEVEL_ACTIONS      0x0000040
17 #define MSGLEVEL_JOINS        0x0000080
18 #define MSGLEVEL_PARTS        0x0000100
19 #define MSGLEVEL_QUITS        0x0000200
20 #define MSGLEVEL_KICKS        0x0000400
21 #define MSGLEVEL_MODES        0x0000800
22 #define MSGLEVEL_TOPICS       0x0001000
23 #define MSGLEVEL_WALLOPS      0x0002000
24 #define MSGLEVEL_INVITES      0x0004000
25 #define MSGLEVEL_NICKS        0x0008000
26 #define MSGLEVEL_DCC          0x0010000
27 #define MSGLEVEL_DCCMSGS      0x0020000
28 #define MSGLEVEL_CLIENTNOTICE 0x0040000
29 #define MSGLEVEL_CLIENTCRAP   0x0080000
30 #define MSGLEVEL_CLIENTERROR  0x0100000
31 #define MSGLEVEL_HILIGHT      0x0200000
32
33 #define MSGLEVEL_ALL          0x03fffff
34
35 #define MSGLEVEL_NOHILIGHT    0x1000000 /* Don't highlight this message */
36 #define MSGLEVEL_NO_ACT       0x2000000 /* Don't trigger channel activity */
37 #define MSGLEVEL_NEVER        0x4000000 /* never ignore / never log */
38 #define MSGLEVEL_LASTLOG      0x8000000 /* never ignore / never log */
39
40 int level_get(const char *level);
41 int level2bits(const char *level);
42 char *bits2level(int bits);
43 int combine_level(int dest, const char *src);
44
45 #endif