From 32be456c07972a289ebbf8db99b88a591e963235 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 13 May 2007 22:10:57 +0000 Subject: Replace strip/blockcolor tags with , 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 --- include/configreader.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') 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 #include #include @@ -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. */ -- cgit v1.2.3