]>
Commit | Line | Data |
---|---|---|
108f1888 | 1 | #ifndef FLAGS_H |
2 | #define FLAGS_H | |
3 | ||
4 | /* This file contains all the flags used in the aClient structure | |
5 | * More flags can be added simply by going up in multiples of 2. | |
6 | * ie. 0001 0002 0004 0008 0010 0020 0040 0080 0100 0200 0400 0800 | |
7 | * This method was taken from my experience in working with various | |
8 | * IRCD packages. Most of them use this for their modes along with | |
9 | * corresponding letter representations. | |
10 | */ | |
11 | ||
12 | #define FLAG_ADMIN 0x0001 | |
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | #define setAdmin(x) ((x)->addFlag(FLAG_ADMIN)) | |
21 | #define clearAdmin(x) ((x)->remFlag(FLAG_ADMIN)) | |
22 | #define isAdmin(x) ((x)->getFlags() & FLAG_ADMIN) | |
23 | ||
24 | #endif |