aboutsummaryrefslogtreecommitdiff
path: root/src/configparser.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* | Fix some warnings which are causing debug builds to fail.•••- Clang: private field 'module' is not used - GCC: suggest a space before ‘;’ or explicit braces around empty body in ‘while’ statement Gravatar Peter Powell2013-07-161-1/+4
* | Convert a ton of uses of MAXBUF to use a fixed buffer size.Gravatar Peter Powell2013-06-061-1/+1
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-2/+2
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-4/+4
* | Default to the XML config format.Gravatar Peter Powell2013-04-061-5/+5
|/
* Add support for mandatory tags in included config files•••If the mandatory tag is not found in the included config, the rehash is aborted. This is especially useful for remote includes, as it allows users to have a dummy tag at the end of the included config to indicate that the config has been wholly read. This method does not depend on exit codes so even situations where wget returns an empty or a wrong page that we would otherwise accept can be detected and an error can be generated before we assume that the contents have disappeared (and unload all modules, if the included file is supposed to contain module tags, for example). Usage: <include ... mandatorytag="namehere"> - if the included config doesn't contain a <namehere> tag then the rehash is aborted Fixes #30 reported by @Justasic Gravatar attilamolnar2013-03-201-8/+21
* Close files opened with popen() with pclose() instead of fclose()Gravatar attilamolnar2012-07-111-2/+2
* Cut the ending \n from all lines in included (exec)filesGravatar attilamolnar2012-06-081-1/+5
* Fix last character being chopped off in included (exec)files (e.g. motd and r...Gravatar attilamolnar2012-05-301-1/+1
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+14
* Fail config parse if duplicate keys are found•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12658 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-03-231-2/+7
* Better error messages for m_autoop•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12423 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-101-1/+1
* Clean up documentation of connect blocks a bit•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12410 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-091-1/+8
* Executable include for MOTD and more•••This introduces an <execfiles> tag that reads files from the output of a command, in the same way as executable includes. The files specified here can also be used anywhere a file is used (opermotd, randquote, etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12354 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-021-0/+37
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Add <config:format> to avoid breaking existing configuration files with XML e...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11974 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-251-2/+24
* Fix semicolon being included in XML entity expansion•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11973 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-241-1/+2
* Make ConfigTag::items private•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11956 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-221-4/+17
* Split up configreader.cpp, it's a bit large•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11954 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-221-0/+387