aboutsummaryrefslogtreecommitdiff
path: root/src/configparser.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Make more config stuff case insensitive.Gravatar Peter Powell2018-07-241-7/+7
|
* Add a ConfigTag::getString overload that calls a validation method.Gravatar Peter Powell2018-07-101-0/+15
|
* Add range checking to ConfigTag::getFloat.Gravatar Peter Powell2018-04-161-2/+5
|
* Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-161-0/+17
|
* Convert ConfigTag::getDuration to return an unsigned long.Gravatar Peter Powell2018-04-161-2/+2
|
* Extract ConfigTag::getInt magnitude logic to a function template.Gravatar Peter Powell2018-04-161-12/+39
|
* Convert ConfigTag::CheckRange to a function template.Gravatar Peter Powell2018-04-161-12/+26
|
* Add a constructor to OperInfo and use it to set the type name.Gravatar Peter Powell2017-10-181-0/+5
|
* Add support for length arguments in getString.Gravatar Peter Powell2017-09-031-3/+11
|
* Store config values in a map instead of a unique vector of pairs.Gravatar Peter Powell2016-12-081-10/+9
|
* Strip carriage returns in the config parser.Gravatar Peter Powell2016-09-201-1/+1
| | | | | This prevents problems when configuration files have been edited on a Windows machine.
* Change type of some associative containers to their flat versions, including ↵Gravatar Attila Molnar2014-12-151-1/+1
| | | | Extensible storage
* Add stdalgo::isin() and use it to simplify codeGravatar Attila Molnar2014-11-011-1/+1
|
* Remove if (!this) check from ConfigTag::readString()Gravatar Attila Molnar2014-10-271-11/+0
|
* Merge insp20Gravatar Attila Molnar2014-10-271-0/+9
|\
| * Fix various warnings when building with LLVM 3.5.Gravatar Peter Powell2014-10-131-0/+9
| | | | | | | | | | - warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] - warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
* | Use std::find() in ParseStack::ParseFile()Gravatar Attila Molnar2014-06-091-7/+2
| |
* | Deduplicate ParseStack::ParseFile() and ParseExec()Gravatar Attila Molnar2014-06-091-29/+5
| |
* | Implement support for numeric character references.Gravatar Peter Powell2014-04-111-5/+25
| |
* | Merge insp20Gravatar Attila Molnar2014-01-211-2/+2
|\|
| * Fix a shadow warning created by ConfigTag::createGravatar ChrisTX2013-09-131-2/+2
| |
* | Fix some Windows-related problems.Gravatar Peter Powell2014-01-041-4/+3
| | | | | | | | | | | | | | - Fix an error relating to the unavailability of std::back_inserter. - Fix loading configuration files when using relative paths. - Fix two methods in hashcomp being exported twice. - Remove some unimportant error messages.
* | Fix Windows build and a few more problemsGravatar attilamolnar2013-08-271-2/+2
| |
* | Add ConfigTag::getDuration() with optional bounds checkingGravatar attilamolnar2013-08-121-1/+18
| |
* | Add <path> keys for all of the compile-time paths.Gravatar Peter Powell2013-08-121-8/+10
| | | | | | | | | | | | Also, make all paths in the config relative to their associated directory. This reverts a change in 2.0 which turned out to be a terrible idea, especially for system-wide installations.
* | Replace range() with min and max arguments on getInt().Gravatar Peter Powell2013-08-101-4/+10
| |
* | Fix some warnings which are causing debug builds to fail.Gravatar Peter Powell2013-07-161-1/+4
| | | | | | | | | | | | - Clang: private field 'module' is not used - GCC: suggest a space before ‘;’ or explicit braces around empty body in ‘while’ statement
* | 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 filesGravatar attilamolnar2013-03-201-8/+21
| | | | | | | | | 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
* 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 ↵Gravatar attilamolnar2012-05-301-1/+1
| | | | rules)
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+14
|
* Fail config parse if duplicate keys are foundGravatar danieldg2010-03-231-2/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12658 e03df62e-2008-0410-955e-edbf42e46eb7
* Better error messages for m_autoopGravatar danieldg2010-02-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12423 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up documentation of connect blocks a bitGravatar danieldg2010-02-091-1/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12410 e03df62e-2008-0410-955e-edbf42e46eb7
* Executable include for MOTD and moreGravatar danieldg2010-02-021-0/+37
| | | | | | | | 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
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <config:format> to avoid breaking existing configuration files with XML ↵Gravatar danieldg2009-10-251-2/+24
| | | | | | entity changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11974 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix semicolon being included in XML entity expansionGravatar danieldg2009-10-241-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11973 e03df62e-2008-0410-955e-edbf42e46eb7
* Make ConfigTag::items privateGravatar danieldg2009-10-221-4/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11956 e03df62e-2008-0410-955e-edbf42e46eb7
* Split up configreader.cpp, it's a bit largeGravatar danieldg2009-10-221-0/+387
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11954 e03df62e-2008-0410-955e-edbf42e46eb7