310 |
|
|
311 |
|
#define CAP_MULTI_PREFIX 0x00000001 |
312 |
|
|
313 |
+ |
#define HasCap(x, y) ((x)->localClient->cap_active & (y)) |
314 |
+ |
|
315 |
|
/* housekeeping flags */ |
316 |
|
#define FLAGS_PINGSENT 0x0000000000000001 /* Unreplied ping sent */ |
317 |
|
#define FLAGS_DEADSOCKET 0x0000000000000002 /* Local socket is dead--Exiting soon */ |
346 |
|
#define FLAGS_PINGWARNING 0x0000000040000000 /* unreplied ping warning already sent */ |
347 |
|
#define FLAGS_FINISHED_AUTH 0x0000000080000000 /* Client has been released from auth */ |
348 |
|
#define FLAGS_FLOOD_NOTICED 0x0000000100000000 |
349 |
+ |
#define FLAGS_SERVICE 0x0000000200000000 /* Client/server is a network service */ |
350 |
|
|
351 |
|
|
352 |
|
/* umodes, settable flags */ |
498 |
|
#define SetPingCookie(x) ((x)->flags |= FLAGS_PING_COOKIE) |
499 |
|
#define IsHidden(x) ((x)->flags & FLAGS_HIDDEN) |
500 |
|
#define SetHidden(x) ((x)->flags |= FLAGS_HIDDEN) |
501 |
+ |
#define IsService(x) ((x)->flags & FLAGS_SERVICE) |
502 |
+ |
#define SetService(x) ((x)->flags |= FLAGS_SERVICE) |
503 |
|
|
504 |
|
#define IsSendqBlocked(x) ((x)->flags & FLAGS_BLOCKED) |
505 |
|
#define SetSendqBlocked(x) ((x)->flags |= FLAGS_BLOCKED) |