From 8ffa149aa186d81b8c5017bb3f7e82d483da8898 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 May 2007 12:08:51 +0000 Subject: Add config example, and allow options:defaultmodes="" so that people can have no default modes if they want. Default in the example config is 'nt'. SIDENOTE: Someone really needs to tidy up in 1.2 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7166 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/inspircd.conf.example | 8 ++++++++ src/configreader.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/inspircd.conf.example b/docs/inspircd.conf.example index 59b7933f6..c201385a3 100644 --- a/docs/inspircd.conf.example +++ b/docs/inspircd.conf.example @@ -882,6 +882,13 @@ # exemptchanops - This option allows channel operators to be exempted# # from certain channel modes. # # Supported modes are +SfgNc. Defaults to off. # +# # +# defaultmodes - The default modes to be given to each channel on # +# creation. Defaults to 'nt'. There should be no + # +# or - symbols in this sequence, if you add them # +# they will be ignored. You may add parameters for # +# parameterised modes. # +# # #-#-#-#-#-#-#-#-#-#-#-#-#-#- TIME SYNC OPTIONS -#-#-#-#-#-#-#-#-#-#-#-# diff --git a/src/configreader.cpp b/src/configreader.cpp index 6e9b75c43..e05a78874 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -630,7 +630,7 @@ void ServerConfig::Read(bool bail, userrec* user) {"options", "hostintopic", "1", new ValueContainerBool (&this->FullHostInTopic), DT_BOOLEAN, NoValidation}, {"options", "hidemodes", "", new ValueContainerChar (hidemodes), DT_CHARPTR, ValidateModeLists}, {"options", "exemptchanops","", new ValueContainerChar (exemptchanops), DT_CHARPTR, ValidateExemptChanOps}, - {"options", "defaultmodes", "nt", new ValueContainerChar (this->DefaultModes), DT_CHARPTR, NoValidation}, + {"options", "defaultmodes", "", new ValueContainerChar (this->DefaultModes), DT_CHARPTR, NoValidation}, {"pid", "file", "", new ValueContainerChar (this->PID), DT_CHARPTR, NoValidation}, {"whowas", "groupsize", "10", new ValueContainerInt (&this->WhoWasGroupSize), DT_INTEGER, NoValidation}, {"whowas", "maxgroups", "10240", new ValueContainerInt (&this->WhoWasMaxGroups), DT_INTEGER, NoValidation}, -- cgit v1.2.3