summaryrefslogtreecommitdiff
path: root/src/conf_parser.y
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2016-06-05 14:16:36 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-06-05 17:47:56 +0100
commit4f57d083c810f57edc0fe449b0de1f48e402107b (patch)
tree16b151f653454b48643b28a5ef6c14034e167f60 /src/conf_parser.y
parent634111fc07826dcf7f1f408c5186dc9f842d2a5c (diff)
Add global channel operator support
Diffstat (limited to 'src/conf_parser.y')
-rw-r--r--src/conf_parser.y11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/conf_parser.y b/src/conf_parser.y
index 3a1948b..efb1176 100644
--- a/src/conf_parser.y
+++ b/src/conf_parser.y
@@ -308,6 +308,7 @@ reset_block_state(void)
%token T_FARCONNECT
%token T_FILE
%token T_FULL
+%token T_GCHANOPS
%token T_GLOBOPS
%token T_INVISIBLE
%token T_INVITEONLY
@@ -1260,6 +1261,10 @@ oper_umodes_item: T_BOTS
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_FARCONNECT;
+} | T_GCHANOPS
+{
+ if (conf_parser_ctx.pass == 2)
+ block_state.modes.value |= UMODE_GCHANOP;
};
oper_flags: IRCD_FLAGS
@@ -2782,6 +2787,9 @@ umode_oitem: T_BOTS
} | T_FARCONNECT
{
ConfigFileEntry.oper_umodes |= UMODE_FARCONNECT;
+} | T_GCHANOPS
+{
+ ConfigFileEntry.oper_umodes |= UMODE_GCHANOP;
};
general_oper_only_umodes: OPER_ONLY_UMODES
@@ -2853,6 +2861,9 @@ umode_item: T_BOTS
} | T_FARCONNECT
{
ConfigFileEntry.oper_only_umodes |= UMODE_FARCONNECT;
+} | T_GCHANOPS
+{
+ ConfigFileEntry.oper_only_umodes |= UMODE_GCHANOP;
};
general_min_nonwildcard: MIN_NONWILDCARD '=' NUMBER ';'