summaryrefslogtreecommitdiff
path: root/src/configparser.cpp
AgeCommit message (Collapse)Author
2013-06-06Convert a ton of uses of MAXBUF to use a fixed buffer size.Peter Powell
2013-05-19Fix spacing in calls to LogManager::Log.Peter Powell
2013-04-12Add LOG_ prefix to the log level enum values.Peter Powell
2013-04-06Default to the XML config format.Peter Powell
2013-03-20Add support for mandatory tags in included config filesattilamolnar
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
2012-07-11Close files opened with popen() with pclose() instead of fclose()attilamolnar
2012-06-08Cut the ending \n from all lines in included (exec)filesattilamolnar
2012-05-30Fix last character being chopped off in included (exec)files (e.g. motd and ↵attilamolnar
rules)
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2010-03-23Fail config parse if duplicate keys are founddanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12658 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-10Better error messages for m_autoopdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12423 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-09Clean up documentation of connect blocks a bitdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12410 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-02Executable include for MOTD and moredanieldg
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
2010-01-11...because every now and again, i have to do a massive commit.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-25Add <config:format> to avoid breaking existing configuration files with XML ↵danieldg
entity changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11974 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-24Fix semicolon being included in XML entity expansiondanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11973 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-22Make ConfigTag::items privatedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11956 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-22Split up configreader.cpp, it's a bit largedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11954 e03df62e-2008-0410-955e-edbf42e46eb7