summaryrefslogtreecommitdiff
path: root/include
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
commit14630f6b4763b34ff96c091c3e55f387862af185 (patch)
tree035a58ea3b2da4767b8e638f306605a8ad992dcc /include
parent4f57d083c810f57edc0fe449b0de1f48e402107b (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/channel_mode.h3
-rw-r--r--include/client.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/channel_mode.h b/include/channel_mode.h
index 76136ec..755c17a 100644
--- a/include/channel_mode.h
+++ b/include/channel_mode.h
@@ -44,7 +44,8 @@ enum
CHACCESS_NOTONCHAN = -1,
CHACCESS_PEON = 0,
CHACCESS_HALFOP = 1,
- CHACCESS_CHANOP = 2
+ CHACCESS_CHANOP = 2,
+ CHACCESS_GOD = 3
};
/* can_send results */
diff --git a/include/client.h b/include/client.h
index e799eca..a983cd5 100644
--- a/include/client.h
+++ b/include/client.h
@@ -168,7 +168,7 @@ struct MaskItem;
#define UMODE_HIDDENHOST 0x01000000 /**< User's host is hidden */
#define UMODE_SSL 0x02000000 /**< User is connected via TLS/SSL */
#define UMODE_WEBIRC 0x04000000 /**< User connected via a webirc gateway */
-#define UMODE_GCHANOP 0x08000000 /**< Global channel operator */
+#define UMODE_GOD 0x08000000 /**< Operator is God */
#define UMODE_ALL UMODE_SERVNOTICE
@@ -181,7 +181,7 @@ struct MaskItem;
UMODE_REGONLY | UMODE_REGISTERED | UMODE_ADMIN |\
UMODE_HIDDEN | UMODE_HIDDENHOST | UMODE_SSL |\
UMODE_WEBIRC | UMODE_CALLERID | UMODE_SOFTCALLERID |\
- UMODE_GCHANOP)
+ UMODE_GOD)