summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix this properly, the way I should have done initially.. only load RFC ↵Gravatar w00t2008-12-151-3/+0
| | | | | | commands on startup, avoids needless "leak fix" which crashes things on config reload. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10887 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't attempt to modify permissions on config file, obsoletes debian patch.Gravatar w00t2008-11-271-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10827 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix: Port was never read in for connect tags, patch from Szymek - thanks!Gravatar w00t2008-10-291-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10750 e03df62e-2008-0410-955e-edbf42e46eb7
* Backport r10030Gravatar w00t2008-07-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10031 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/branches/1_1_stable@9708 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops, fix a bug here where the high-bit flags in the config struct for ↵Gravatar brain2008-03-141-1/+1
| | | | | | 'allow newlines' etc cause the data to be ignored! git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9072 e03df62e-2008-0410-955e-edbf42e46eb7
* Header update: 2007 -> 2008Gravatar w00t2008-01-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8695 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug in windows with backslash directory seperators in config path ↵Gravatar brain2007-10-271-9/+4
| | | | | | when used with <include> tag and a relative include path, reported by daurnimator git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8387 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to stable, tooGravatar brain2007-10-141-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8199 e03df62e-2008-0410-955e-edbf42e46eb7
* Backport: Add options:maxtargets that was somehow omitted, fixes bug #400 ↵Gravatar brain2007-08-271-0/+1
| | | | | | (Reported by DarkStorm) git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7878 e03df62e-2008-0410-955e-edbf42e46eb7
* BP: Pick up a few error conditions we didnt before in the config reader, and ↵Gravatar brain2007-08-191-24/+30
| | | | | | also increment line number correctly when 'real' newline is found in a value git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7750 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix this so it works. Gravatar brain2007-08-111-0/+3
| | | | | | | | OBVIOUS WARNING FOR THE DUMB: Dont go overwriting .so files at random to test this, you WILL crash your ircd if you do this improprerly, this is a feature of the linux shared object loader. If you want to test this, try with: rm cmd_whatever.so && echo "TESTTEST" >cmd_whatever.so, do NOT just do the echo. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7714 e03df62e-2008-0410-955e-edbf42e46eb7
* Backport: Check for remote and sighup rehashes here, so that it doesnt crash ↵Gravatar brain2007-08-071-1/+1
| | | | | | if there are ports that cant be bound git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7685 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+1714
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵Gravatar peavey2007-07-161-1714/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* Implement a way to disable options:maxwho, bug #348Gravatar brain2007-07-121-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7437 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix undocumented windows behaviour where multiple dns servers are packed ↵Gravatar brain2007-06-241-0/+5
| | | | | | into one registry key seperated by commas git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7408 e03df62e-2008-0410-955e-edbf42e46eb7
* Change some = "" to clear() and some == "" to .empty()Gravatar brain2007-06-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
* Add options:moronbanner. Yes really, thats what its called. See the example ↵Gravatar brain2007-06-041-0/+1
| | | | | | config. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7232 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix windows issue locating some files relative to the conf dir (namely motd, ↵Gravatar brain2007-06-041-10/+11
| | | | | | rules, quotes), See: http://www.inspircd.org/forum/showthread.php?t=989&page=2 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7231 e03df62e-2008-0410-955e-edbf42e46eb7
* Make nt the default channelmode if <options:defaultmodes> is not present.Gravatar peavey2007-06-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7228 e03df62e-2008-0410-955e-edbf42e46eb7
* The code to work out the path seems to work fine now on freebsd and linux, ↵Gravatar brain2007-06-021-3/+0
| | | | | | still to test on win git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7211 e03df62e-2008-0410-955e-edbf42e46eb7
* Debug to troubleshoot why this writes the log to the current dir in bsd, not ↵Gravatar brain2007-06-021-0/+3
| | | | | | the bin dir where it should git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7210 e03df62e-2008-0410-955e-edbf42e46eb7
* Specific windows code for getting the full path to the exeGravatar brain2007-06-021-2/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7209 e03df62e-2008-0410-955e-edbf42e46eb7
* Detect BRAINDEAD WINDOWS EDITORS THAT DEFAULT TO SAVING AS UTF-16! When we ↵Gravatar brain2007-05-311-6/+16
| | | | | | find out which editor did this, we'll use our retractable baton to teach it the true meaning of portable data. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7195 e03df62e-2008-0410-955e-edbf42e46eb7
* Add config example, and allow options:defaultmodes="" so that people can ↵Gravatar brain2007-05-271-1/+1
| | | | | | | | | | have no default modes if they want. Default in the example config is 'nt'. SIDENOTE: Someone really needs to tidy up <options> in 1.2 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7166 e03df62e-2008-0410-955e-edbf42e46eb7
* Config option for default channel modes -- more to follow, don't use yetGravatar brain2007-05-271-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7163 e03df62e-2008-0410-955e-edbf42e46eb7
* pah, bully to you, mister posixGravatar brain2007-05-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7159 e03df62e-2008-0410-955e-edbf42e46eb7
* This should do itGravatar brain2007-05-261-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7158 e03df62e-2008-0410-955e-edbf42e46eb7
* Works for me now, please testGravatar brain2007-05-261-3/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7157 e03df62e-2008-0410-955e-edbf42e46eb7
* Brok.Gravatar brain2007-05-261-1/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7156 e03df62e-2008-0410-955e-edbf42e46eb7
* w00t please review, line 1603 configreader.cppGravatar brain2007-05-261-7/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7154 e03df62e-2008-0410-955e-edbf42e46eb7
* Add comments as to what its doingGravatar brain2007-05-221-2/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7117 e03df62e-2008-0410-955e-edbf42e46eb7
* Code to find nameservers in the windows registry - largely untestedGravatar brain2007-05-221-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7113 e03df62e-2008-0410-955e-edbf42e46eb7
* It seems that making inspircd.h the first include in .cpp files eliminates ↵Gravatar brain2007-05-211-1/+1
| | | | | | the warning C4996, as the defines to prevent it are set before any includes that cause it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7094 e03df62e-2008-0410-955e-edbf42e46eb7
* - Modify ServerConfig::GetFullProgDir to just return cwd, previously it did ↵Gravatar w00t2007-05-201-26/+6
| | | | | | a lot of voodoo that was a little hard to grasp, probably didn't quite accomplish what it should have, and broke on windows. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7063 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows path seperator is \, this was assuming /. Fixed.Gravatar brain2007-05-201-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7062 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-1/+4
| | | | | | step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
* Replace strip/blockcolor tags with <options:exemptchanops>, sexy string of ↵Gravatar w00t2007-05-131-0/+10
| | | | | | modes to exempt chanops from (currently Sc are supported). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7018 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactor port binding, warning not yet tested fullyGravatar brain2007-05-111-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6982 e03df62e-2008-0410-955e-edbf42e46eb7
* Implement bug #282 from owine: kill sender hiding. <options:hidekills> needs ↵Gravatar w00t2007-05-091-1/+2
| | | | | | to be set to a static string to display instead of the killer's nick. QA: *IMPORTANT* please extensivly test local ***AND*** remote killing with this on and off. Thanks :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6921 e03df62e-2008-0410-955e-edbf42e46eb7
* we typedeffed nspace::hash_map<std::string,command_t*> to command_table ages ↵Gravatar brain2007-05-071-2/+2
| | | | | | | | | ago. Now its time we used it! command_table::iterator is far neater than nspace::hash_map<std::string,command_t*>::iterator git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6907 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix one issue, add another feature: When sending MODE +beI, weed out ↵Gravatar brain2007-04-301-2/+11
| | | | | | | | | | duplicates with simple O(1) check so that users dont send MODE #chan +bbbbbbbbbbbb. Allow configuration of which listmodes you want to deny to below halfops. For example <options hidemodes="eI">. This is because blocking +b can break mirc, blocking +eI usually wont break it so severely. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6852 e03df62e-2008-0410-955e-edbf42e46eb7
* Add support for hiding listmode lists such as +beI from unprivileged users.Gravatar brain2007-04-271-1/+2
| | | | | | | See bug #258 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6849 e03df62e-2008-0410-955e-edbf42e46eb7
* Add tweaks to support feature request in bug #256, now awaiting QA testGravatar brain2007-04-151-2/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6799 e03df62e-2008-0410-955e-edbf42e46eb7
* Feature request outlined in bug #257, allow connect/allow lines by portGravatar brain2007-04-151-3/+5
| | | | | | | Needs QA test git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6798 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix the previous commit better - always copy the null terminator (oops)Gravatar brain2007-04-061-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6744 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix issue spotted by devious - if a value is defined and a later rehash ↵Gravatar brain2007-04-061-1/+3
| | | | | | | | | clears the value to empty, the value is not unset properly because it tries to memcpy zero bytes to the value - this means memcpy just returns immediately. Now if the string value is 0 in length we copy one byte instead (which just copies the null terminator) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6743 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #199 (Feature request) submitted by owine. Ended up adding an ↵Gravatar brain2007-04-051-4/+5
| | | | | | | | | extra parameter to <uline> for this. It turned into a biggie :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6742 e03df62e-2008-0410-955e-edbf42e46eb7
* Add -config parameter to bin/inspircd which allows a user to specify the ↵Gravatar brain2007-04-011-5/+5
| | | | | | | | | config file on the commandline Note: This should really be a full pathname, and not a configuration file in the current directory. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6726 e03df62e-2008-0410-955e-edbf42e46eb7