summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-13 22:10:57 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-13 22:10:57 +0000
commit32be456c07972a289ebbf8db99b88a591e963235 (patch)
tree59644e48d23de5f4aa442253da53a4a8ef7cf5fd /include
parent763deccf122440ed8ea876ac53e0a6198b38240e (diff)
Replace strip/blockcolor tags with <options:exemptchanops>, sexy string of modes to exempt chanops from (currently Sc are supported).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7018 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index db4c6d3d5..772de2177 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -14,6 +14,13 @@
#ifndef INSPIRCD_CONFIGREADER
#define INSPIRCD_CONFIGREADER
+/* handy defines */
+
+/** Determines if a channel op is exempt from given mode m,
+ * in config of server instance s.
+ */
+#define CHANOPS_EXEMPT(s, m) (s->Config->ExemptChanOps[(unsigned char)m])
+
#include <sstream>
#include <string>
#include <vector>
@@ -355,6 +362,11 @@ class ServerConfig : public Extensible
*/
bool HideModeLists[256];
+ /** If this is set to true, then channel operators
+ * are exempt from this channel mode. Used for +Sc etc.
+ */
+ bool ExemptChanOps[256];
+
/** The number of seconds the DNS subsystem
* will wait before timing out any request.
*/