summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add security:genericoper as requested by Strawberry and TwinShadow.Gravatar brain2009-02-131-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11098 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove/Add cmode h according to <option:allowhalfop>. Fixes bug #715 ↵Gravatar peavey2009-02-111-13/+31
| | | | | | reported by Strawberry. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11081 e03df62e-2008-0410-955e-edbf42e46eb7
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* install .gdbargs to $(BASE) in make installGravatar brain2008-12-041-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10843 e03df62e-2008-0410-955e-edbf42e46eb7
* Rip flood/threshold out of config classes also.Gravatar w00t2008-12-011-24/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10839 e03df62e-2008-0410-955e-edbf42e46eb7
* Thread safety fixes to avoid crashes on rehash, dont reopen logs within the ↵Gravatar brain2008-11-221-9/+0
| | | | | | | | | rehash thread. Put this in the safe part of the rehash operation, after the thread exits. Put a mutex around the part where the thread exits, just in case somehow there are two rehash threads exiting at the same time due to user muppetry. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10811 e03df62e-2008-0410-955e-edbf42e46eb7
* This was never supposed to be invoked on /rehash, only startup.. so move it ↵Gravatar w00t2008-11-021-11/+1
| | | | | | to startup only. Also remove (redundant) user arg. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10792 e03df62e-2008-0410-955e-edbf42e46eb7
* Obsolete m_restrictbanned, add <security:restrictbannedusers>, default on.. ↵Gravatar w00t2008-11-011-0/+1
| | | | | | this is insane to leave off, really, but allow it anyway. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10785 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix another connect class bug on rehashGravatar w00t2008-10-251-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10712 e03df62e-2008-0410-955e-edbf42e46eb7
* (sort of..) Revert commit 7736e920fe6ccaf9ad1984afc70db19efd4fb8cd - remove ↵Gravatar w00t2008-10-251-31/+26
| | | | | | dupe checking on connect classes. Now, we just delete ones with refcount 0 on rehash, and add new ones. Connection can only match a non-disabled class, so most of the braindamage should be gone from here, without causing wild pointer fun.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10701 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a plausible memory leak on rehash, thanks dz.Gravatar w00t2008-10-241-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10698 e03df62e-2008-0410-955e-edbf42e46eb7
* Patch from dz to fix bug 622 (config errors build up from /rehash to ↵Gravatar w00t2008-10-231-3/+7
| | | | | | /rehash), thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10690 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove debug logging, problem over..Gravatar w00t2008-10-221-16/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10688 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix MacGyver's rehash woes..Gravatar w00t2008-10-221-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10687 e03df62e-2008-0410-955e-edbf42e46eb7
* Bit of debug in case this goes wrong again...Gravatar w00t2008-10-221-9/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10686 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove an extremely noisy piece of debug on startup/rehash - this code ↵Gravatar w00t2008-10-201-2/+0
| | | | | | works fine anyway git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10683 e03df62e-2008-0410-955e-edbf42e46eb7
* Implement <security:runasuser> and <security:runasgroup> - allows for ↵Gravatar w00t2008-10-201-0/+3
| | | | | | set(g|u)id to drop privs after starting, which can be useful for people who want to bind privileged ports without exposing their anus to a giant cucumber. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10682 e03df62e-2008-0410-955e-edbf42e46eb7
* Working privs implementation, and example usage in NOTICE for mass messaging.Gravatar w00t2008-10-181-3/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10662 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't neglect calling User::CheckClass after SetClass, so that users don't ↵Gravatar w00t2008-10-171-0/+6
| | | | | | end up lingering with a NULL class if they shouldn't. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10656 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove the duplicate checking/disabled setting of <connect> craq, there is a ↵Gravatar w00t2008-10-171-41/+19
| | | | | | (better) way to do this, which is to hunt for a new connect class on all users once /rehash happens. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10654 e03df62e-2008-0410-955e-edbf42e46eb7
* Modify $copy macros in comments, fixes bug #617Gravatar brain2008-10-151-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10643 e03df62e-2008-0410-955e-edbf42e46eb7
* 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