Remove unused flag FLAGS_CHKACCESS.

This commit is contained in:
Jilles Tjoelker 2007-12-24 20:26:39 +01:00
parent 965dfbd38a
commit 5fcb6b5d88
3 changed files with 0 additions and 7 deletions

View File

@ -416,7 +416,6 @@ struct exit_client_hook
#define FLAGS_KILLED 0x0004 /* Prevents "QUIT" from being sent for this */ #define FLAGS_KILLED 0x0004 /* Prevents "QUIT" from being sent for this */
#define FLAGS_SENTUSER 0x0008 /* Client sent a USER command. */ #define FLAGS_SENTUSER 0x0008 /* Client sent a USER command. */
#define FLAGS_CLOSING 0x0020 /* set when closing to suppress errors */ #define FLAGS_CLOSING 0x0020 /* set when closing to suppress errors */
#define FLAGS_CHKACCESS 0x0040 /* ok to check clients access if set */
#define FLAGS_GOTID 0x0080 /* successful ident lookup achieved */ #define FLAGS_GOTID 0x0080 /* successful ident lookup achieved */
#define FLAGS_NEEDID 0x0100 /* I-lines say must use ident return */ #define FLAGS_NEEDID 0x0100 /* I-lines say must use ident return */
#define FLAGS_NORMALEX 0x0400 /* Client exited normally */ #define FLAGS_NORMALEX 0x0400 /* Client exited normally */
@ -480,9 +479,6 @@ struct exit_client_hook
* flags macros. * flags macros.
*/ */
#define IsPerson(x) (IsClient(x) && (x)->user != NULL) #define IsPerson(x) (IsClient(x) && (x)->user != NULL)
#define DoAccess(x) ((x)->flags & FLAGS_CHKACCESS)
#define SetAccess(x) ((x)->flags |= FLAGS_CHKACCESS)
#define ClearAccess(x) ((x)->flags &= ~FLAGS_CHKACCESS)
#define HasServlink(x) ((x)->flags & FLAGS_SERVLINK) #define HasServlink(x) ((x)->flags & FLAGS_SERVLINK)
#define SetServlink(x) ((x)->flags |= FLAGS_SERVLINK) #define SetServlink(x) ((x)->flags |= FLAGS_SERVLINK)
#define MyConnect(x) ((x)->flags & FLAGS_MYCONNECT) #define MyConnect(x) ((x)->flags & FLAGS_MYCONNECT)

View File

@ -173,8 +173,6 @@ check_client(struct Client *client_p, struct Client *source_p, const char *usern
{ {
int i; int i;
ClearAccess(source_p);
if((i = verify_access(source_p, username))) if((i = verify_access(source_p, username)))
{ {
ilog(L_FUSER, "Access denied: %s[%s]", ilog(L_FUSER, "Access denied: %s[%s]",

View File

@ -1003,7 +1003,6 @@ server_estab(struct Client *client_p)
s_assert(NULL != client_p); s_assert(NULL != client_p);
if(client_p == NULL) if(client_p == NULL)
return -1; return -1;
ClearAccess(client_p);
host = client_p->name; host = client_p->name;