X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2Fclient.h;h=2e563456ff78727e269802120d5933a9a52c5e0e;hb=cc05a230ac079fa15a2e43e6e68ef7126128cefd;hp=91ceba1cfbb1a48512e41fd5a8327f001df9db57;hpb=b8294f6c0db86ec8d204b0fda51070f3a415fb57;p=ircu2.10.12-pk.git diff --git a/include/client.h b/include/client.h index 91ceba1..2e56345 100644 --- a/include/client.h +++ b/include/client.h @@ -355,11 +355,13 @@ struct Client { #define FLAGS_WALLOP 0x0040 /* send wallops to them */ #define FLAGS_SERVNOTICE 0x0080 /* server notices such as kill */ #define FLAGS_BLOCKED 0x0100 /* socket is in a blocked condition */ +#define FLAGS_ACCOUNT 0x0200 /* account name has been set */ #define FLAGS_CLOSING 0x0400 /* set when closing to suppress errors */ #define FLAGS_UPING 0x0800 /* has active UDP ping request */ #define FLAGS_CHKACCESS 0x1000 /* ok to check clients access if set */ #define FLAGS_HUB 0x2000 /* server is a hub */ #define FLAGS_SERVICE 0x4000 /* server is a service */ +#define FLAGS_HIDDENHOST 0x8000 /* user's host is hidden */ #define FLAGS_LOCAL 0x00010000 /* set for local clients */ #define FLAGS_GOTID 0x00020000 /* successful ident lookup achieved */ #define FLAGS_DOID 0x00040000 /* I-lines say must use ident return */ @@ -376,7 +378,7 @@ struct Client { #define FLAGS_IPCHECK 0x40000000 /* Added or updated IPregistry data */ #define SEND_UMODES \ - (FLAGS_INVISIBLE|FLAGS_OPER|FLAGS_WALLOP|FLAGS_DEAF|FLAGS_CHSERV|FLAGS_DEBUG) + (FLAGS_INVISIBLE|FLAGS_OPER|FLAGS_WALLOP|FLAGS_DEAF|FLAGS_CHSERV|FLAGS_DEBUG|FLAGS_ACCOUNT|FLAGS_HIDDENHOST) #define ALL_UMODES (SEND_UMODES|FLAGS_SERVNOTICE|FLAGS_LOCOP) #define FLAGS_ID (FLAGS_DOID|FLAGS_GOTID) @@ -406,6 +408,9 @@ struct Client { #define SendWallops(x) (cli_flags(x) & FLAGS_WALLOP) #define IsHub(x) (cli_flags(x) & FLAGS_HUB) #define IsService(x) (cli_flags(x) & FLAGS_SERVICE) +#define IsAccount(x) (cli_flags(x) & FLAGS_ACCOUNT) +#define IsHiddenHost(x) (cli_flags(x) & FLAGS_HIDDENHOST) +#define HasHiddenHost(x) (IsAccount(x) && IsHiddenHost(x)) #define IsPrivileged(x) (IsAnOper(x) || IsServer(x)) @@ -426,6 +431,8 @@ struct Client { #define SetServNotice(x) (cli_flags(x) |= FLAGS_SERVNOTICE) #define SetHub(x) (cli_flags(x) |= FLAGS_HUB) #define SetService(x) (cli_flags(x) |= FLAGS_SERVICE) +#define SetAccount(x) (cli_flags(x) |= FLAGS_ACCOUNT) +#define SetHiddenHost(x) (cli_flags(x) |= FLAGS_HIDDENHOST) #define ClearAccess(x) (cli_flags(x) &= ~FLAGS_CHKACCESS) #define ClearBurst(x) (cli_flags(x) &= ~FLAGS_BURST) @@ -440,6 +447,7 @@ struct Client { #define ClearUPing(x) (cli_flags(x) &= ~FLAGS_UPING) #define ClearWallops(x) (cli_flags(x) &= ~FLAGS_WALLOP) #define ClearServNotice(x) (cli_flags(x) &= ~FLAGS_SERVNOTICE) +#define ClearHiddenHost(x) (cli_flags(x) &= ~FLAGS_HIDDENHOST) /* free flags */ #define FREEFLAG_SOCKET 0x0001 /* socket needs to be freed */