summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old TODO commentGravatar brain2008-09-201-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10570 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a rather nasty race condition revealed by my reading through the ↵Gravatar brain2008-09-201-30/+72
| | | | | | | | | | comments and enhancing them. Back when i did executeable includes, i placed a 'todo' in the code which said something along the lines of: 'we cant pass a User* into the config reader any more, because when the config reader thread finishes, that user may be gone and this will crash. Consider using an UID instead so that if the user vanishes, we can detect this situation.' Of course, nobody ever did this, so i'm doing it now to ensure we dont come up against some particularly ugly race condition crashes! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10569 e03df62e-2008-0410-955e-edbf42e46eb7
* Be more verbose in ValidateNotEmpty on failure. Patch by CyberbotX.Gravatar peavey2008-09-141-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10544 e03df62e-2008-0410-955e-edbf42e46eb7
* Start moving IO hooking from being bufferedsocket based to residing in ↵Gravatar w00t2008-09-071-31/+0
| | | | | | EventHandler, this will pave the way for a generic listener type, and also simplifies a lot of code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10447 e03df62e-2008-0410-955e-edbf42e46eb7
* Make ThreadEngine::Mutex() protected too, make the user use Lock() and Unlock()Gravatar brain2008-09-061-18/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10418 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <disabled:fakenonexistant> - ircd will pretend that a disabled command ↵Gravatar w00t2008-08-271-0/+1
| | | | | | just doesn't exist (for austnet), document <disabled:usermodes> and <disabled:chanmodes> (bad aquanight.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10327 e03df62e-2008-0410-955e-edbf42e46eb7
* Implement <options:invitebypassmodes>, optionally circumvent +blk if invited ↵Gravatar w00t2008-08-071-1/+2
| | | | | | on join. Based on a patch provided by mixx941, closes bug #589. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10120 e03df62e-2008-0410-955e-edbf42e46eb7
* fix compile errors under debug profile in windows.Gravatar brain2008-08-061-7/+0
| | | | | | fix some warnings too. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10108 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove last vestige of libircdfoo, by changing tag into a single ↵Gravatar w00t2008-07-291-1/+1
| | | | | | identifier marking object as requiring compilation into a .o (minor commit) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix potential off-by-one on large reads (thanks psychon)Gravatar w00t2008-07-201-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10048 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes to some stuff that writes on memory it shouldn't (thanks psychon).Gravatar w00t2008-07-201-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10047 e03df62e-2008-0410-955e-edbf42e46eb7
* Implement <disabled:usermodes> and <disabled:chanmodes>.Gravatar aquanight2008-07-181-0/+26
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10032 e03df62e-2008-0410-955e-edbf42e46eb7
* Combine IP+port in a failed port list, show (the more helpful) error string ↵Gravatar w00t2008-07-171-1/+1
| | | | | | so the user can have some idea of what actually went wrong.. why we forced people to strace is beyond me.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10030 e03df62e-2008-0410-955e-edbf42e46eb7
* Lots, lots more numerics.h conversionGravatar w00t2008-07-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10014 e03df62e-2008-0410-955e-edbf42e46eb7
* More conversion, and a note to client coders.Gravatar w00t2008-07-131-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10011 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <cidr> block, and documentation in example config.Gravatar w00t2008-07-121-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9980 e03df62e-2008-0410-955e-edbf42e46eb7
* Add .example suffix to nameGravatar w00t2008-07-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9973 e03df62e-2008-0410-955e-edbf42e46eb7
* Copy new conf location and seperate modules.conf on installGravatar w00t2008-07-121-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9972 e03df62e-2008-0410-955e-edbf42e46eb7
* Add the rest of the stuff for named pipe comms, including feedback ↵Gravatar brain2008-06-181-6/+8
| | | | | | information, and fix a bug in configreader that made it load the core commands every rehash git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9913 e03df62e-2008-0410-955e-edbf42e46eb7
* Define PATH_MAX if its not already definedGravatar brain2008-06-151-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9907 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove PATH_MAX because some retard removed itGravatar brain2008-06-121-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9895 e03df62e-2008-0410-955e-edbf42e46eb7
* Now builds ok on gcc 4.3, not tested fully. Also UGLY, oh we hate you GCC, ↵Gravatar brain2008-06-121-1/+1
| | | | | | why couldnt you just use TR1 from the start??? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9894 e03df62e-2008-0410-955e-edbf42e46eb7
* Dont announce successful rehash if bail is set to true (e.g. we're booting)Gravatar brain2008-06-081-4/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9876 e03df62e-2008-0410-955e-edbf42e46eb7
* More useful error reporting that give closer line numbers, so long as you ↵Gravatar brain2008-06-081-12/+19
| | | | | | can read them :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9869 e03df62e-2008-0410-955e-edbf42e46eb7
* Config reader strictness: check for escape sequences (\" etc) outside of a ↵Gravatar brain2008-06-081-0/+5
| | | | | | quoted section and deny it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9868 e03df62e-2008-0410-955e-edbf42e46eb7
* Make checks more strictGravatar brain2008-06-081-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9867 e03df62e-2008-0410-955e-edbf42e46eb7
* Bitch when we find stray characters outside of a tag, this will track down a ↵Gravatar brain2008-06-081-0/+6
| | | | | | lot of config errors that arent noticed till the end of the file at present git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9866 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow 0-9 in tag/key names, and special check for > and \nGravatar brain2008-06-081-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9865 e03df62e-2008-0410-955e-edbf42e46eb7
* Check in tag names tooGravatar brain2008-06-081-1/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9864 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for invalid characters in keys, will catch config errors earlier and ↵Gravatar brain2008-06-081-3/+9
| | | | | | closer to the actual error line. Valid values in key names are [A-Za-z_] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9863 e03df62e-2008-0410-955e-edbf42e46eb7
* m_abbreviation completed. :)Gravatar brain2008-06-061-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9845 e03df62e-2008-0410-955e-edbf42e46eb7
* All the limits were one less than specified in the config, so now we ↵Gravatar brain2008-05-251-0/+5
| | | | | | | | | postincrement them all in configreader, this means we can just use them without all that +1 hackery in the code. This DOES mean that from a protocol perspective the figures look a little odd, but they always did. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9809 e03df62e-2008-0410-955e-edbf42e46eb7
* Add parsing of <limits> tag and finish documenting it, make all the values ↵Gravatar brain2008-05-251-0/+10
| | | | | | match sensibly by starting them all 'max' rather than some starting with it, some ending with it... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9808 e03df62e-2008-0410-955e-edbf42e46eb7
* First phase of conversion to dynamic limits on all the lengths, configured ↵Gravatar brain2008-05-251-2/+2
| | | | | | | | | via the <limits> tag (the tag isnt there yet, these all just run on defaults in the class constructor) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9802 e03df62e-2008-0410-955e-edbf42e46eb7
* A few minor fixes, some copy constructor stuff, misnamed channelmanager ↵Gravatar brain2008-05-201-5/+4
| | | | | | constructor, add files to vc8 project, configreader tidyups git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9780 e03df62e-2008-0410-955e-edbf42e46eb7
* Make User:: nick/ident/dhost/fullname and some other things std::string ↵Gravatar aquanight2008-05-181-13/+13
| | | | | | instead of char*/char[] (MODULES DO NOT COMPILE) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9748 e03df62e-2008-0410-955e-edbf42e46eb7
* Jason, try this..Gravatar w00t2008-05-181-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9746 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for Jason's bug.. this needs more thought, though. I'll probably whip up ↵Gravatar w00t2008-05-181-1/+6
| | | | | | something tonight. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9742 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for windows drive letters on the start of paths and treat them the ↵Gravatar brain2008-05-131-2/+7
| | | | | | same as paths that start with /, this makes insp more friendly for windows filesystems git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9724 e03df62e-2008-0410-955e-edbf42e46eb7
* Patch ReadFile() not to bork on one line files, and ensure it works ok with ↵Gravatar brain2008-05-121-6/+5
| | | | | | win32 (it does) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9707 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix LoadConf always reading 1 extra byte of random garbage.Gravatar peavey2008-05-101-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9691 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge in large patchset from GreenReaper, useful fixes for freeing a ton of ↵Gravatar brain2008-04-211-2/+3
| | | | | | different things on shutdown for tidyness, and a few stack corruption fixes in the mode handler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9565 e03df62e-2008-0410-955e-edbf42e46eb7
* fix text in validate methods where option was moved to either performance or ↵Gravatar peavey2008-04-191-4/+4
| | | | | | security. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9552 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for ValidateHostnameGravatar peavey2008-04-151-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9511 e03df62e-2008-0410-955e-edbf42e46eb7
* Chain ValidateServerName onto ValidateHostname so that the servername gets ↵Gravatar brain2008-04-151-1/+1
| | | | | | hostname validity checks (prevents servernames with spaces etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9510 e03df62e-2008-0410-955e-edbf42e46eb7
* Deprecate a few more config options.Gravatar peavey2008-04-151-6/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9509 e03df62e-2008-0410-955e-edbf42e46eb7
* Nuke the ability to define <options:loglevel> from orbit :pGravatar brain2008-04-151-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9508 e03df62e-2008-0410-955e-edbf42e46eb7
* See configreader.cpp line 764 to see how to declare deprecated items. This ↵Gravatar brain2008-04-151-1/+19
| | | | | | is reasonably well thought out so i see no issue with leaving items here a very long time :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9507 e03df62e-2008-0410-955e-edbf42e46eb7
* Move options vlaues netbuffersize, maxwho, maxconn, softlimit, quietbursts, ↵Gravatar brain2008-04-141-5/+5
| | | | | | nouserdns into performance tag git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9505 e03df62e-2008-0410-955e-edbf42e46eb7
* TRUNK CONFIG BREAKAGE WARNING: Move a bunch of options tag values into a new ↵Gravatar brain2008-04-141-10/+10
| | | | | | tag called 'security'. See example conf git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9504 e03df62e-2008-0410-955e-edbf42e46eb7