From 7f273676eb203a1be6ca179c6ee1b3d3a4e81a78 Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 5 Jun 2016 14:16:36 +0100 Subject: Convert global channel operator support to OFTC's God mode. OFTC's God mode is very similar to the global channel operator mode, with the following differences: - gaining God mode notifies all operators - uses of God mode privileges notifies all operators - God mode times out after a configurable period - uses umode S rather than O - S is taken for SSL clients in hybrid 8.1.13. So align with OFTC's implementation, but omit these features. --- src/conf_parser.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/conf_parser.y') diff --git a/src/conf_parser.y b/src/conf_parser.y index f77db44..4274b6a 100644 --- a/src/conf_parser.y +++ b/src/conf_parser.y @@ -1271,7 +1271,7 @@ oper_umodes_item: T_BOTS } | T_GCHANOPS { if (conf_parser_ctx.pass == 2) - block_state.modes.value |= UMODE_GCHANOP; + block_state.modes.value |= UMODE_GOD; }; oper_flags: IRCD_FLAGS @@ -2781,7 +2781,7 @@ umode_oitem: T_BOTS ConfigFileEntry.oper_umodes |= UMODE_FARCONNECT; } | T_GCHANOPS { - ConfigFileEntry.oper_umodes |= UMODE_GCHANOP; + ConfigFileEntry.oper_umodes |= UMODE_GOD; }; general_oper_only_umodes: OPER_ONLY_UMODES @@ -2855,7 +2855,7 @@ umode_item: T_BOTS ConfigFileEntry.oper_only_umodes |= UMODE_FARCONNECT; } | T_GCHANOPS { - ConfigFileEntry.oper_only_umodes |= UMODE_GCHANOP; + ConfigFileEntry.oper_only_umodes |= UMODE_GOD; }; general_min_nonwildcard: MIN_NONWILDCARD '=' NUMBER ';' -- cgit