X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fconfigreader.h;h=c4275ab5f03eebbb3b2a16511705bfa0a5c8ad56;hb=3ec7995bf4981119115d14ce2cfce0cb5795f803;hp=61cf887faf28f207c43a58867077ab1dca9d073e;hpb=b111eec597349ad2dc7d4b54945097df813535b4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/configreader.h b/include/configreader.h index 61cf887fa..c4275ab5f 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -151,9 +151,9 @@ struct InitialConfig struct MultiConfig { const char* tag; - char* items[12]; - char* items_default[12]; - int datatype[12]; + char* items[13]; + char* items_default[13]; + int datatype[13]; MultiNotify init_function; MultiValidator validation_function; MultiNotify finish_function; @@ -276,6 +276,14 @@ class ServerConfig : public Extensible */ char PrefixQuit[MAXBUF]; + /** The quit suffix in use, or an empty string + */ + char SuffixQuit[MAXBUF]; + + /** The fixed quit message in use, or an empty string + */ + char FixedQuit[MAXBUF]; + /** The last string found within a tag, or * an empty string. */ @@ -341,6 +349,12 @@ class ServerConfig : public Extensible */ bool AllowHalfop; + /** If this is set to true, then mode lists (e.g + * MODE #chan b) are hidden from unprivileged + * users. + */ + bool HideModeLists[256]; + /** The number of seconds the DNS subsystem * will wait before timing out any request. */ @@ -395,6 +409,10 @@ class ServerConfig : public Extensible */ bool HideBans; + /** Announce invites to the channel with a server notice + */ + bool AnnounceInvites; + /** If this is enabled then operators will * see invisible (+i) channels in /whois. */ @@ -475,7 +493,7 @@ class ServerConfig : public Extensible /** List of u-lined servers */ - std::vector ulines; + std::map ulines; /** Max banlist sizes for channels (the std::string is a glob) */ @@ -524,6 +542,14 @@ class ServerConfig : public Extensible */ int argc; + /** Max channels per user + */ + unsigned int MaxChans; + + /** Oper max channels per user + */ + unsigned int OperMaxChans; + /** Construct a new ServerConfig */ ServerConfig(InspIRCd* Instance);