X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fconfigreader.h;h=b1eb9b263f21d9fd1faa93e5630145ab954fc871;hb=5ee7322040d501fe55853453caa230f4550313c3;hp=94302f25c57a0948a817a41f9ae4d10edb814ab7;hpb=e24540666cf30d4cd093c82d14b1f6f703dc0196;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/configreader.h b/include/configreader.h index 94302f25c..b1eb9b263 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -182,11 +182,11 @@ struct MultiConfig /** Tag name */ const char* tag; /** One or more items within tag */ - char* items[13]; + char* items[17]; /** One or more defaults for items within tags */ - char* items_default[13]; + char* items_default[17]; /** One or more data types */ - int datatype[13]; + int datatype[17]; /** Initialization function */ MultiNotify init_function; /** Validation function */ @@ -239,7 +239,10 @@ class CoreExport ServerConfig : public Extensible public: - /* Pointer to function that validates dns server addresses (can be changed depending on platform) */ + /** Used to indicate who we announce invites to on a channel */ + enum InviteAnnounceState { INVITE_ANNOUNCE_NONE, INVITE_ANNOUNCE_ALL, INVITE_ANNOUNCE_OPS, INVITE_ANNOUNCE_DYNAMIC }; + + /** Pointer to function that validates dns server addresses (can be changed depending on platform) */ Validator DNSServerValidator; InspIRCd* GetInstance(); @@ -459,7 +462,7 @@ class CoreExport ServerConfig : public Extensible /** Announce invites to the channel with a server notice */ - bool AnnounceInvites; + InviteAnnounceState AnnounceInvites; /** If this is enabled then operators will * see invisible (+i) channels in /whois. @@ -600,6 +603,13 @@ class CoreExport ServerConfig : public Extensible */ unsigned int OperMaxChans; + /** TS6-like server ID. + * NOTE: 000...999 are usable for InspIRCd servers. This + * makes code simpler. 0AA, 1BB etc with letters are reserved + * for services use. + */ + int sid; + /** Construct a new ServerConfig */ ServerConfig(InspIRCd* Instance);