mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 08:23:12 +02:00
Remove more IsAnOp/IsOp
This commit is contained in:
+1
-3
@@ -104,8 +104,6 @@ char cmodestring[512];
|
||||
inline int op_can_override(char* acl, aClient *sptr,aChannel *channel,void* extra)
|
||||
{
|
||||
#ifndef NO_OPEROVERRIDE
|
||||
if (!IsOper(sptr))
|
||||
return 0;
|
||||
if (MyClient(sptr) && !(OperClass_evaluateACLPath(acl,sptr,NULL,channel,extra)))
|
||||
return 0;
|
||||
return 1;
|
||||
@@ -955,7 +953,7 @@ char *clean_ban_mask(char *mask, int what, aClient *cptr)
|
||||
/* Extended ban? */
|
||||
if ((*mask == '~') && mask[1] && (mask[2] == ':'))
|
||||
{
|
||||
if (RESTRICT_EXTENDEDBANS && MyClient(cptr) && !IsAnOper(cptr))
|
||||
if (RESTRICT_EXTENDEDBANS && MyClient(cptr) && !OperClass_evaluateACLPath("channel:extbans",icptr,NULL,NULL,NULL))
|
||||
{
|
||||
if (!strcmp(RESTRICT_EXTENDEDBANS, "*"))
|
||||
{
|
||||
|
||||
+1
-1
@@ -485,7 +485,7 @@ int check_tkls(aClient *cptr)
|
||||
|
||||
if (bconf)
|
||||
killflag++;
|
||||
else if (!IsAnOper(cptr) && (bconf = Find_ban(NULL, cptr->info, CONF_BAN_REALNAME)))
|
||||
else if (!OperClass_evaluateACLPath("immune",sptr,NULL,NULL,NULL) && (bconf = Find_ban(NULL, cptr->info, CONF_BAN_REALNAME)))
|
||||
killflag++;
|
||||
}
|
||||
|
||||
|
||||
+1
-5
@@ -167,11 +167,7 @@ inline void parse_addlag(aClient *cptr, int cmdbytes)
|
||||
#ifdef FAKELAG_CONFIGURABLE
|
||||
!(cptr->class && (cptr->class->options & CLASS_OPT_NOFAKELAG)) &&
|
||||
#endif
|
||||
#ifdef NO_FAKE_LAG_FOR_LOCOPS
|
||||
!IsAnOper(cptr))
|
||||
#else
|
||||
!IsOper(cptr))
|
||||
#endif
|
||||
!OperClass_evaluateACLPath("privacy:fakelag",cptr,NULL,NULL,NULL))
|
||||
{
|
||||
cptr->since += (1 + cmdbytes/90);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user