diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-27 12:08:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-27 12:08:51 +0000 |
commit | 8ffa149aa186d81b8c5017bb3f7e82d483da8898 (patch) | |
tree | d070f2d9b29136dd332f75bd3ecb2098604cca24 | |
parent | 5b6462f4f60f743ab63480d76d40a40c6b0453d1 (diff) |
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 <options> in 1.2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7166 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | docs/inspircd.conf.example | 8 | ||||
-rw-r--r-- | src/configreader.cpp | 2 |
2 files changed, 9 insertions, 1 deletions
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. # +# # <options prefixquit="Quit: " loglevel="default" @@ -913,6 +920,7 @@ quietbursts="yes" pingwarning="15" allowhalfop="yes" + defaultmodes="nt" exemptchanops=""> #-#-#-#-#-#-#-#-#-#-#-#-#-#- 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}, |