summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
AgeCommit message (Collapse)Author
2008-06-18Add the rest of the stuff for named pipe comms, including feedback ↵brain
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
2008-06-15Define PATH_MAX if its not already definedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9907 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-12Remove PATH_MAX because some retard removed itbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9895 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-12Now builds ok on gcc 4.3, not tested fully. Also UGLY, oh we hate you GCC, ↵brain
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
2008-06-08Dont announce successful rehash if bail is set to true (e.g. we're booting)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9876 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-08More useful error reporting that give closer line numbers, so long as you ↵brain
can read them :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9869 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-08Config reader strictness: check for escape sequences (\" etc) outside of a ↵brain
quoted section and deny it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9868 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-08Make checks more strictbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9867 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-08Bitch when we find stray characters outside of a tag, this will track down a ↵brain
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
2008-06-08Allow 0-9 in tag/key names, and special check for > and \nbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9865 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-08Check in tag names toobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9864 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-08Check for invalid characters in keys, will catch config errors earlier and ↵brain
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
2008-06-06m_abbreviation completed. :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9845 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-25All the limits were one less than specified in the config, so now we ↵brain
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
2008-05-25Add parsing of <limits> tag and finish documenting it, make all the values ↵brain
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
2008-05-25First phase of conversion to dynamic limits on all the lengths, configured ↵brain
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
2008-05-20A few minor fixes, some copy constructor stuff, misnamed channelmanager ↵brain
constructor, add files to vc8 project, configreader tidyups git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9780 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18Make User:: nick/ident/dhost/fullname and some other things std::string ↵aquanight
instead of char*/char[] (MODULES DO NOT COMPILE) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9748 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18Jason, try this..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9746 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18Fix for Jason's bug.. this needs more thought, though. I'll probably whip up ↵w00t
something tonight. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9742 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13Check for windows drive letters on the start of paths and treat them the ↵brain
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
2008-05-12Patch ReadFile() not to bork on one line files, and ensure it works ok with ↵brain
win32 (it does) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9707 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10Fix LoadConf always reading 1 extra byte of random garbage.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21Merge in large patchset from GreenReaper, useful fixes for freeing a ton of ↵brain
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
2008-04-19fix text in validate methods where option was moved to either performance or ↵peavey
security. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9552 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-15Fixes for ValidateHostnamepeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9511 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-15Chain ValidateServerName onto ValidateHostname so that the servername gets ↵brain
hostname validity checks (prevents servernames with spaces etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9510 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-15Deprecate a few more config options.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9509 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-15Nuke the ability to define <options:loglevel> from orbit :pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9508 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-15See configreader.cpp line 764 to see how to declare deprecated items. This ↵brain
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
2008-04-14Move options vlaues netbuffersize, maxwho, maxconn, softlimit, quietbursts, ↵brain
nouserdns into performance tag git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9505 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-14TRUNK CONFIG BREAKAGE WARNING: Move a bunch of options tag values into a new ↵brain
tag called 'security'. See example conf git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9504 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13trunk doesnt seem to like < and > in a quoted section, because someone ↵brain
REMOVED the if check by mistake! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9495 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12Fixes for bug #515, update existing in-use connect tags on the fly in rehashbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9471 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11(untested) don't move newconfig to ServerConfig::config_data until its been ↵brain
validated by all the validation funcs in the core config table git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9461 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11Remove 'default log' and <options:loglevel> (wtf?)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9460 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10Fix for bug #503 reported by Stealth (at last)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9453 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02Depreciated ServerInstance->Log() seems to crash configreader on rehash? We ↵brain
should remove the depreciated calls anyway, so im not too concerned as to why they crash - probably not threadsafe. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9275 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02Remove MAXCLIENTS, this is supported at runtime by the softlimit anyway.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9265 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30Commit -Wformat=2 -Wmissing-format-attributes, printf-like functions in ↵aquanight
inspircd now get treated like printf (meaning compile-time check goodness) in GCC git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9217 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24This module uses io hooking too, fix it upbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9190 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23Add ability to control what opertypes can set what operonly user/chan modes. ↵aquanight
This works the same way as commands, in that modes allowed by classes are added together, and * allows all. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9176 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22Wheeee for HUGE commits. Convert all numerics to WriteNumeric so that ↵brain
OnNumeric can capture them. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9175 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-14Add fixes to stop people changing the SID of a live server - certain ↵brain
configuration values are silently ignored on rehash, namely the server name and server id. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9073 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-26EXECUTABLE INCLUDES works! :Dbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9039 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-26Fixes to make it run right :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9038 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-26Revert configure so that we can uh, actually compile.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9037 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-24Yay, local /rehash is now fixed :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9028 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-24Add mutexes to this to make it a bit more threadsafebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9025 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-24I apologise for the 712 space-indented lines i put in here :< *runs*brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9024 e03df62e-2008-0410-955e-edbf42e46eb7