summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* have configure detect SOMAXCONN and store it in a string define, SOMAXCONN_SGravatar brain2006-12-261-37/+37
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6126 e03df62e-2008-0410-955e-edbf42e46eb7
* Add defaults for a ton of config vars, fix indentation, and add MAXCLIENTS_S ↵Gravatar brain2006-12-261-57/+49
| | | | | | to avoid one of the itoa()'s git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6125 e03df62e-2008-0410-955e-edbf42e46eb7
* Add some defaults to serverconfig, removing need to set them in validate ↵Gravatar peavey2006-12-261-17/+15
| | | | | | methods. Still more to do in multitags. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6120 e03df62e-2008-0410-955e-edbf42e46eb7
* Also add support for default values for ConfValueBool and ConfValueInteger ↵Gravatar peavey2006-12-261-7/+38
| | | | | | in configreader, and for ReadFlag and ReadInteger in modules. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6116 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup a few var inits for whowas and ircu style prefix.Gravatar peavey2006-12-261-4/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6114 e03df62e-2008-0410-955e-edbf42e46eb7
* Add possibility to define default value for ConfValue in configreader and ↵Gravatar peavey2006-12-261-39/+55
| | | | | | ReadConf in modules. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6113 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug in m_dnsbl, a condition is always matched because someone was using ↵Gravatar brain2006-12-231-3/+4
| | | | | | | | | unsigned int to check a return val that can be -1 *slap w00t* Change around the way exit codes are formed so that we can return a sensible exit code that reflects why inspircd exited git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6076 e03df62e-2008-0410-955e-edbf42e46eb7
* Uninitialized values: fun for ALL the family this xmas time.Gravatar brain2006-12-221-5/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6065 e03df62e-2008-0410-955e-edbf42e46eb7
* Line 1582 configreader.cppGravatar brain2006-12-221-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6063 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactor connect allow/deny linesGravatar brain2006-12-221-34/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6061 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a little = turned into a ==Gravatar peavey2006-12-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6025 e03df62e-2008-0410-955e-edbf42e46eb7
* If the caller said no linefeeds, dont bail, instead just turn the linefeeds ↵Gravatar brain2006-12-171-3/+6
| | | | | | | | | | | into spaces, so that "aaaa bbbb" becomes "aaaa bbbb". git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6022 e03df62e-2008-0410-955e-edbf42e46eb7
* Config option added for prefixed channel NOTICEs and PRIVMSGs to turn on/off ↵Gravatar peavey2006-12-161-0/+1
| | | | | | IRCU style of adding prefix to outgoing text. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6018 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up text formattingGravatar brain2006-12-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6015 e03df62e-2008-0410-955e-edbf42e46eb7
* Add an optional parameter to ConfigReader::ReadValue which defines if we ↵Gravatar brain2006-12-161-103/+129
| | | | | | | | | | want linefeeds or not. Tidy up some duplicated code in configreader (error reporting) Change ModuleException to inherit from CoreException, have the configreader throw and catch its CoreException on fatal error git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6013 e03df62e-2008-0410-955e-edbf42e46eb7
* Linefeeds in quotes, just for w00t.Gravatar brain2006-12-161-7/+24
| | | | | | | WARNING: THIS NEEDS SOME EXTRA STUFF TOMORROW: Someone remind me to add a 'no linefeeds' bool flag to ConfigReader::ReadValue, because a lot of values should NOT have linefeeds in! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6004 e03df62e-2008-0410-955e-edbf42e46eb7
* Jesus, look who's the commit whore today. More header updates, and removal ↵Gravatar w00t2006-12-151-7/+4
| | | | | | of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
* Improve the way 005 ISUPPORT is sent to users when they connect, cache it in ↵Gravatar brain2006-12-131-0/+31
| | | | | | a much more sane format which is much simpler to spool to them git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5978 e03df62e-2008-0410-955e-edbf42e46eb7
* It works! WOO AND YAY! (this isnt finished yet, only an idiot would use this ↵Gravatar brain2006-12-091-0/+1
| | | | | | on a production net atm) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5897 e03df62e-2008-0410-955e-edbf42e46eb7
* Add the stuff required for the InspSocketHook interfaceGravatar brain2006-12-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5890 e03df62e-2008-0410-955e-edbf42e46eb7
* Not yet tested -- allow iohooking of inspsocketsGravatar brain2006-12-091-2/+33
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5886 e03df62e-2008-0410-955e-edbf42e46eb7
* CheckDie was always still here, we were just forgetting to set the die ↵Gravatar brain2006-12-031-12/+1
| | | | | | value's string git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5833 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix <die:value>, its been broken for quite some time. (whoops *hide*)Gravatar brain2006-12-031-0/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5832 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed <options:tempdir> - this hasn't been used since modules were updated ↵Gravatar special2006-11-221-9/+1
| | | | | | to not copy before load (quite awhile ago) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5785 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix all the _FORTIFY_SOURCE warnings except "punned pointer".Gravatar brain2006-11-191-7/+14
| | | | | | | We CANNOT fix this, as it is the recommended (and only) way to dlsym a symbol from a .so file. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5770 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up some stuffGravatar brain2006-11-151-0/+52
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5753 e03df62e-2008-0410-955e-edbf42e46eb7
* The array should no longer be staticGravatar brain2006-11-151-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5752 e03df62e-2008-0410-955e-edbf42e46eb7
* All of the void* cast stuff gone!!!Gravatar brain2006-11-151-60/+77
| | | | | | | Todo: comment all this stuff... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5750 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove tons of pointer craq (theres still a tinnny bit more to remove)Gravatar brain2006-11-151-76/+62
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5749 e03df62e-2008-0410-955e-edbf42e46eb7
* Tons of tweaks to the config stuff for the coreGravatar brain2006-11-141-53/+52
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5744 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup and tons of debug in here, to troubleshoot an ongoing issue with ↵Gravatar brain2006-11-141-7/+7
| | | | | | gcc3.3 and what seems like a stack corruption git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5743 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix PruneWhoWas to actually work right on rehash. Add debug output to ↵Gravatar peavey2006-11-131-1/+4
| | | | | | whowas. More code comments to whowas. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5734 e03df62e-2008-0410-955e-edbf42e46eb7
* Do *NOT* use local vars in ServerConfig::Read for temporary storage of valuesGravatar peavey2006-11-131-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5733 e03df62e-2008-0410-955e-edbf42e46eb7
* add <whowas> config option to control whowas behaviour. *may break*Gravatar peavey2006-11-131-1/+26
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5731 e03df62e-2008-0410-955e-edbf42e46eb7
* When rehashing and adding new ports, error back to the user if the ports ↵Gravatar brain2006-11-121-1/+12
| | | | | | fail to bind git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5730 e03df62e-2008-0410-955e-edbf42e46eb7
* When some (but not all) of the ports fail to bind on startup, give the user ↵Gravatar brain2006-11-121-1/+2
| | | | | | | | | a list of the failed port/ip pairs on the terminal. Other ircds dont do this, and say 'go read the log'. I say if we can output them to a log, why not the screen? :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5728 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed bug #164 by peaveydkGravatar special2006-11-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5658 e03df62e-2008-0410-955e-edbf42e46eb7
* As requested by satmd, inspircd will now run with no client ports configuredGravatar brain2006-11-041-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5643 e03df62e-2008-0410-955e-edbf42e46eb7
* <pid file> is no longer a manditory tag (thanks dotslasher)Gravatar brain2006-10-271-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5556 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow relative path on pid fileGravatar brain2006-10-271-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5547 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow relative paths for motd and rules (and anything that uses ReadFile)Gravatar brain2006-10-271-1/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5546 e03df62e-2008-0410-955e-edbf42e46eb7
* Replaced operonlystats with userstats to improve securityGravatar special2006-10-071-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5456 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove a strcpyGravatar brain2006-10-061-9/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5433 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow putting newlines into quoted values in the config using \n. I'm coming ↵Gravatar brain2006-09-171-1/+6
| | | | | | to a use for this. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5272 e03df62e-2008-0410-955e-edbf42e46eb7
* Try this pipp and see if the bug manifests in a different placeGravatar brain2006-09-131-18/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5233 e03df62e-2008-0410-955e-edbf42e46eb7
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include listsGravatar brain2006-08-301-6/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <options:cyclehosts> which allows a user to appear to have quit when ↵Gravatar brain2006-08-251-1/+2
| | | | | | | | | their host changes, so that clients/bots can stay synched properly. It is recommended this option always be on. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5017 e03df62e-2008-0410-955e-edbf42e46eb7
* Just to mess with om's head, remove helperfuncs.h from everywhereGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to using Instance->Log (InspIRCd::Log) rather than log() macroGravatar brain2006-08-111-27/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
* Now two types of log macro, log() and ilog(). log() assumes an InspIRCd ↵Gravatar brain2006-08-111-16/+16
| | | | | | | | | object called ServerInstance, ilog() takes an InspIRCd object as first param. TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7