diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-12 14:51:41 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-12 14:51:41 +0000 |
commit | f12ebd1f2ac718e17c438410c332192d1360d6a3 (patch) | |
tree | 3ff48bf3a9c651e93c5df42f43e9c3dcc271a0cc /include/client.h | |
parent | df0978f4c17d55ce78679463d9a00f4fddbd14fe (diff) |
- Removed 'remote', and 'global_kill' oper flags, and added 'connect',
'squit', and 'kill' flags for better fine-tuning instead. Whether or
not a specific action is allowed on a remote server can be controlled
by appeding the ':remote' flag. For example: 'kill' allows only local
clients to be killed, whereas 'kill:remote' allows to issue a KILL for
remote clients
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2013 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include/client.h')
-rw-r--r-- | include/client.h | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/include/client.h b/include/client.h index bb3b80e..4f03823 100644 --- a/include/client.h +++ b/include/client.h @@ -174,23 +174,27 @@ /* oper priv flags */ -#define OPER_FLAG_GLOBAL_KILL 0x00000001 /**< Oper can global kill */ -#define OPER_FLAG_REMOTE 0x00000002 /**> Oper can do squits/connects */ -#define OPER_FLAG_UNKLINE 0x00000004 /**< Oper can use unkline */ -#define OPER_FLAG_GLINE 0x00000008 /**< Oper can use gline */ -#define OPER_FLAG_K 0x00000010 /**< Oper can kill/kline */ -#define OPER_FLAG_X 0x00000020 /**< Oper can xline */ -#define OPER_FLAG_DIE 0x00000040 /**< Oper can die */ -#define OPER_FLAG_REHASH 0x00000080 /**< Oper can rehash */ -#define OPER_FLAG_ADMIN 0x00000100 /**< Oper can set umode +a */ -#define OPER_FLAG_OPERWALL 0x00000200 /**< Oper can use OPERWALL command */ -#define OPER_FLAG_REMOTEBAN 0x00000400 /**< Oper can set remote bans */ -#define OPER_FLAG_GLOBOPS 0x00000800 /**< Oper can use GLOBOPS command */ -#define OPER_FLAG_MODULE 0x00001000 /**< Oper can use MODULE commands */ -#define OPER_FLAG_RESTART 0x00002000 /**< Oper can use RESTART command */ -#define OPER_FLAG_DLINE 0x00004000 /**< Oper can use DLINE command */ -#define OPER_FLAG_UNDLINE 0x00008000 /**< Oper can use UNDLINE command */ -#define OPER_FLAG_SET 0x00010000 /**< Oper can use SET command */ +#define OPER_FLAG_KILL_REMOTE 0x00000001 /**< Oper can global kill */ +#define OPER_FLAG_KILL 0x00000002 /**< Oper can do local KILL */ +#define OPER_FLAG_UNKLINE 0x00000004 /**< Oper can use unkline */ +#define OPER_FLAG_GLINE 0x00000008 /**< Oper can use gline */ +#define OPER_FLAG_K 0x00000010 /**< Oper can kill/kline */ +#define OPER_FLAG_X 0x00000020 /**< Oper can xline */ +#define OPER_FLAG_DIE 0x00000040 /**< Oper can die */ +#define OPER_FLAG_REHASH 0x00000080 /**< Oper can rehash */ +#define OPER_FLAG_ADMIN 0x00000100 /**< Oper can set umode +a */ +#define OPER_FLAG_OPERWALL 0x00000200 /**< Oper can use OPERWALL command */ +#define OPER_FLAG_REMOTEBAN 0x00000400 /**< Oper can set remote bans */ +#define OPER_FLAG_GLOBOPS 0x00000800 /**< Oper can use GLOBOPS command */ +#define OPER_FLAG_MODULE 0x00001000 /**< Oper can use MODULE commands */ +#define OPER_FLAG_RESTART 0x00002000 /**< Oper can use RESTART command */ +#define OPER_FLAG_DLINE 0x00004000 /**< Oper can use DLINE command */ +#define OPER_FLAG_UNDLINE 0x00008000 /**< Oper can use UNDLINE command */ +#define OPER_FLAG_SET 0x00010000 /**< Oper can use SET command */ +#define OPER_FLAG_SQUIT 0x00020000 /**< Oper can do local SQUIT */ +#define OPER_FLAG_SQUIT_REMOTE 0x00040000 /**< Oper can do global SQUIT */ +#define OPER_FLAG_CONNECT 0x00080000 /**< Oper can do local CONNECT */ +#define OPER_FLAG_CONNECT_REMOTE 0x00100000 /**< Oper can do global CONNECT */ #define HasOFlag(x, y) (MyConnect(x) ? (x)->localClient->operflags & (y) : 0) #define AddOFlag(x, y) ((x)->localClient->operflags |= (y)) |