mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 05:53:14 +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:
+13
-11
@@ -501,22 +501,23 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */
|
||||
* defined operator access levels
|
||||
*/
|
||||
#define OFLAG_REHASH 0x00000001 /* Oper can /rehash server */
|
||||
#define OFLAG_DIE 0x00000002 /* Oper can /die the server */
|
||||
#define OFLAG_DIE 0x00000002 /* Oper can /die the server */
|
||||
#define OFLAG_RESTART 0x00000004 /* Oper can /restart the server */
|
||||
#define OFLAG_DCCDENY 0x00000008 /* Oper can use /dccdeny and /undccdeny */
|
||||
#define OFLAG_HELPOP 0x00000010 /* Oper can send /HelpOps */
|
||||
#define OFLAG_GLOBOP 0x00000020 /* Oper can send /GlobOps */
|
||||
#define OFLAG_WALLOP 0x00000040 /* Oper can send /WallOps */
|
||||
#define OFLAG_LOCOP 0x00000080 /* Oper can send /LocOps */
|
||||
#define OFLAG_LOCOP 0x00000080 /* Oper can send /LocOps */
|
||||
#define OFLAG_LROUTE 0x00000100 /* Oper can do local routing */
|
||||
#define OFLAG_GROUTE 0x00000200 /* Oper can do global routing */
|
||||
#define OFLAG_LKILL 0x00000400 /* Oper can do local kills */
|
||||
#define OFLAG_GKILL 0x00000800 /* Oper can do global kills */
|
||||
#define OFLAG_KLINE 0x00001000 /* Oper can /kline users */
|
||||
#define OFLAG_LKILL 0x00000400 /* Oper can do local kills */
|
||||
#define OFLAG_GKILL 0x00000800 /* Oper can do global kills */
|
||||
#define OFLAG_KLINE 0x00001000 /* Oper can /kline users */
|
||||
#define OFLAG_UNKLINE 0x00002000 /* Oper can /unkline users */
|
||||
#define OFLAG_LNOTICE 0x00004000 /* Oper can send local serv notices */
|
||||
#define OFLAG_GNOTICE 0x00008000 /* Oper can send global notices */
|
||||
#define OFLAG_ADMIN 0x00010000 /* Admin */
|
||||
#define OFLAG_ZLINE 0x00080000 /* Oper can use /zline and /unzline */
|
||||
#define OFLAG_ADMIN 0x00010000 /* Admin */
|
||||
#define OFLAG_ZLINE 0x00080000 /* Oper can use /zline and /unzline */
|
||||
#define OFLAG_NETADMIN 0x00200000 /* netadmin gets +N */
|
||||
#define OFLAG_COADMIN 0x00800000 /* co admin gets +C */
|
||||
#define OFLAG_SADMIN 0x01000000 /* services admin gets +a */
|
||||
@@ -529,13 +530,14 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */
|
||||
#define OFLAG_LOCAL (OFLAG_REHASH|OFLAG_HELPOP|OFLAG_GLOBOP|OFLAG_WALLOP|OFLAG_LOCOP|OFLAG_LROUTE|OFLAG_LKILL|OFLAG_KLINE|OFLAG_UNKLINE|OFLAG_LNOTICE)
|
||||
#define OFLAG_GLOBAL (OFLAG_LOCAL|OFLAG_GROUTE|OFLAG_GKILL|OFLAG_GNOTICE)
|
||||
#define OFLAG_ISGLOBAL (OFLAG_GROUTE|OFLAG_GKILL|OFLAG_GNOTICE)
|
||||
#define OFLAG_NADMIN (OFLAG_NETADMIN | OFLAG_SADMIN | OFLAG_ADMIN | OFLAG_GLOBAL | OFLAG_UMODEQ)
|
||||
#define OFLAG_ADMIN_ (OFLAG_ADMIN | OFLAG_GLOBAL)
|
||||
#define OFLAG_COADMIN_ (OFLAG_COADMIN | OFLAG_GLOBAL)
|
||||
#define OFLAG_SADMIN_ (OFLAG_SADMIN | OFLAG_GLOBAL | OFLAG_UMODEQ)
|
||||
#define OFLAG_NADMIN (OFLAG_NETADMIN | OFLAG_SADMIN | OFLAG_ADMIN | OFLAG_GLOBAL | OFLAG_UMODEQ | OFLAG_DCCDENY)
|
||||
#define OFLAG_ADMIN_ (OFLAG_ADMIN | OFLAG_GLOBAL | OFLAG_DCCDENY)
|
||||
#define OFLAG_COADMIN_ (OFLAG_COADMIN | OFLAG_GLOBAL | OFLAG_DCCDENY)
|
||||
#define OFLAG_SADMIN_ (OFLAG_SADMIN | OFLAG_GLOBAL | OFLAG_UMODEQ | OFLAG_DCCDENY)
|
||||
|
||||
#define OPCanOverride(x) ((x)->oflag & OFLAG_OVERRIDE)
|
||||
#define OPCanUmodeq(x) ((x)->oflag & OFLAG_UMODEQ)
|
||||
#define OPCanDCCDeny(x) ((x)->oflag & OFLAG_DCCDENY)
|
||||
#define OPCanTKL(x) ((x)->oflag & OFLAG_TKL)
|
||||
#define OPCanGZL(x) ((x)->oflag & OFLAG_GZL)
|
||||
#define OPCanZline(x) ((x)->oflag & OFLAG_ZLINE)
|
||||
|
||||
Reference in New Issue
Block a user