mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 00:23:12 +02:00
- Added can_dccdeny operflag so you can give your local/global opers access to this too.
Co-admin, admin, sadmin and netadmin get it by default. Suggested in #0001247. - Updated operflag docs.
This commit is contained in:
@@ -201,12 +201,14 @@ static int _OldOperFlags[] = {
|
||||
OFLAG_GZL, 'Z',
|
||||
OFLAG_OVERRIDE, 'v',
|
||||
OFLAG_UMODEQ, 'q',
|
||||
OFLAG_DCCDENY, 'd',
|
||||
0, 0
|
||||
};
|
||||
|
||||
/* This MUST be alphabetized */
|
||||
static OperFlag _OperFlags[] = {
|
||||
{ OFLAG_ADMIN_, "admin"},
|
||||
{ OFLAG_DCCDENY, "can_dccdeny"},
|
||||
{ OFLAG_DIE, "can_die" },
|
||||
{ OFLAG_TKL, "can_gkline"},
|
||||
{ OFLAG_GKILL, "can_globalkill" },
|
||||
|
||||
+2
-2
@@ -125,7 +125,7 @@ int m_dccdeny(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
if (!MyClient(sptr))
|
||||
return 0;
|
||||
|
||||
if (!IsAdmin(sptr))
|
||||
if (!IsAnOper(sptr) || !OPCanDCCDeny(sptr))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
|
||||
return 0;
|
||||
@@ -167,7 +167,7 @@ int m_undccdeny(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
if (!MyClient(sptr))
|
||||
return 0;
|
||||
|
||||
if (!IsAdmin(sptr))
|
||||
if (!IsAnOper(sptr) || !OPCanDCCDeny(sptr))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user