summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Don't exit on rehash if the pid file cannot be writtenGravatar Attila Molnar2016-06-171-1/+1
|
* Don't show snotices for kills from ulined clientsGravatar Adam2016-02-251-0/+1
|
* Rebuild clone counts on rehashGravatar Adam2015-03-211-0/+1
|
* Don't bind ports after an unsuccessful rehashGravatar Attila Molnar2015-01-191-1/+1
|
* Fix harmless uninitialized variable usage on startup if the config is incorrectGravatar Attila Molnar2015-01-121-0/+1
|
* Avoid calling methods on NULL pointers wherever possible.Gravatar Peter Powell2014-10-131-1/+9
| | | | | | The trick we use to allow this is undefined behaviour and is not liked by LLVM. We should stop using it but it has the potential to break to many things for a minor release.
* Fix NULL dereference on rehash when there is a fatal error in the ↵Gravatar Attila Molnar2014-03-011-0/+3
| | | | | | configuration of connect classes Fixes issue #780 reported by @JDowny
* Add config option to disable somaxconn range() checkGravatar attilamolnar2013-04-231-1/+2
|
* Remove ServerLimits::Finalise(), it's completely wrongGravatar attilamolnar2012-12-091-2/+0
| | | | Truncate <limits:identmax>+1 long idents in User::ChangeIdent()
* added warning that autoconnect is now a separate tagGravatar Steven Van Acker2012-11-151-0/+1
|
* Fix typo in doc and remove some whitespaceGravatar attilamolnar2012-10-291-2/+1
|
* Move ServerConfig::ProcessColors() into class InspIRCd, as a helper functionGravatar attilamolnar2012-10-291-64/+6
| | | | Change signature to accept a file_cache reference so modules can use it easily
* Fix warnings in configreader.cpp on FreeBSDGravatar attilamolnar2012-10-281-2/+5
| | | | Fixes #348 reported by @netkurd
* Replace printf(_c) with iostreamGravatar ChrisTX2012-10-141-1/+2
|
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-121-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-2/+2
|
* Make ConfigReader::GetSID() return a const reference to a string instead of ↵Gravatar attilamolnar2012-09-301-1/+1
| | | | a string
* Fix undefined behavior caused by referencing the returned buffer by ↵Gravatar attilamolnar2012-09-231-4/+7
| | | | | | | std::string::c_str() when the object is temporary Thanks to @ChrisTX for pointing this out Fixes #257 reported by @helloall
* configreader: Replace ConfValue here with a ConfigTagList enumeration, as it ↵Gravatar ChrisTX2012-09-131-4/+8
| | | | | | | | isn't guaranteed that bind or link tags are unique which causes Issue #270 Original commit edited by @attilamolnar - fixed wrong line being displayed in generated messages - removed redundant ServerInstance->Config before ConfTags
* Add a config option to enable/disable the welcome notice sent to clients ↵Gravatar attilamolnar2012-08-251-0/+1
| | | | | | after successful registration Fixes #284 reported by @hoggeh
* Added color codes to /rules, moved the parsing to ServerConfig and cleaned ↵Gravatar Justin Crawford2012-07-061-0/+76
| | | | the code up a bit
* Explicitly deprecate some config changes.Gravatar Peter Powell2012-07-051-1/+4
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+19
|
* No need to check elines twice..Gravatar Robin Burchell2012-04-181-1/+0
|
* Backported Shawn's NoSnoticeStack code from insp21Gravatar Robby-2012-04-151-0/+1
|
* Add <connect:maxconnwarn>Gravatar Rutger2012-04-011-0/+1
| | | | | | | Created the maxconnwarn variable in the connect block, so you can make connect blocks that only warns about max connections if you want to. This reduces noise from connecting clients that have low maxlocal and/or maxglobal. It is enabled by default.
* Only write pidfile if we have parsed a valid configurationGravatar Daniel De Graaf2011-07-171-3/+4
|
* Fix IPv6 test on WindowsGravatar Adam2011-04-191-1/+1
|
* Fix bug #113Gravatar Jackmcbarn2010-12-231-1/+1
|
* Fix rehash message sending for remote rehashesGravatar Daniel De Graaf2010-08-031-12/+10
|
* Include location of duplicated oper blocksGravatar Daniel De Graaf2010-07-041-1/+1
|
* Don't repeat the Raw I/O log message on every rehashGravatar danieldg2010-03-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12654 e03df62e-2008-0410-955e-edbf42e46eb7
* Change <security:operspywhois> to a tristateGravatar danieldg2010-03-221-2/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12653 e03df62e-2008-0410-955e-edbf42e46eb7
* Add RAWIO log level which is more verbose than DEBUGGravatar danieldg2010-03-191-5/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12646 e03df62e-2008-0410-955e-edbf42e46eb7
* Make /etc/resolv.conf reader slightly less stupidGravatar danieldg2010-03-181-2/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12642 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <options:cyclehostsfromuser> to configure source for mode changes on ↵Gravatar danieldg2010-03-141-0/+1
| | | | | | host cycle git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12636 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix empty SID when applying config-specified X:linesGravatar danieldg2010-03-111-13/+26
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12618 e03df62e-2008-0410-955e-edbf42e46eb7
* Complain when duplicate tags are found using ConfValueGravatar danieldg2010-03-101-3/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12616 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix logic error in comparisonGravatar danieldg2010-03-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12615 e03df62e-2008-0410-955e-edbf42e46eb7
* Warn about duplicate <type> and <class> blocksGravatar danieldg2010-03-081-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12614 e03df62e-2008-0410-955e-edbf42e46eb7
* Replace #define IPV6 with <config defaultbind="ipv6">, and autodetect if not ↵Gravatar danieldg2010-02-231-1/+19
| | | | | | specified git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12550 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove SYSTEM and related sensitive information from the non-oper VERSION lineGravatar danieldg2010-02-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12471 e03df62e-2008-0410-955e-edbf42e46eb7
* Why are we wasting space on DieValue?Gravatar danieldg2010-02-101-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12418 e03df62e-2008-0410-955e-edbf42e46eb7
* Move configuration examples to docs, remove automatic overwrite on make installGravatar danieldg2010-02-061-14/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12383 e03df62e-2008-0410-955e-edbf42e46eb7
* Executable include for MOTD and moreGravatar danieldg2010-02-021-30/+0
| | | | | | | | 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
* Add OnSetConnectClass hook for use in adding requirements to connect classes ↵Gravatar danieldg2010-02-021-3/+0
| | | | | | (such as requiressl) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12352 e03df62e-2008-0410-955e-edbf42e46eb7
* Sort items in the 005 lineGravatar danieldg2010-02-021-11/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12351 e03df62e-2008-0410-955e-edbf42e46eb7
* Update connect block matching on rehash to prefer names, show more useful ↵Gravatar danieldg2010-01-311-19/+29
| | | | | | information in /STATS i git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12337 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow connect classes to be specified without an allow or deny maskGravatar danieldg2010-01-311-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12336 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove MaxWhoResults, replace with an increase of Penalty based on result ↵Gravatar danieldg2010-01-291-3/+0
| | | | | | list size git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12325 e03df62e-2008-0410-955e-edbf42e46eb7