summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* Compile fix•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11685 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-061-1/+1
* Fix rehash unloading core commands•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11684 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-061-0/+3
* Remove HandleInternal and HandleServer, they are duplicated by Request* and F...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11672 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-031-4/+3
* Remove strnewdup(), it is a good source of possible memory leaks•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11622 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-4/+4
* Fix access-after-free on rehash•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11534 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-201-1/+1
* Make rehash work more than once per run, and fix some uninitialized values in...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11505 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-121-2/+0
* Fixes for config reader•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-121-710/+571
* Don't catch and rethrow, as with the mutexing here removed it's no longer req...•••This rethrow was also not best-practice, 'throw;' is the recommended C++ way to rethrow an exception. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11496 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-08-051-75/+66
* How about we abort if there were errors, not if there weren't any? Great idea...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11494 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-051-1/+1
* Fix config errors being detected even if there were none•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11493 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-051-3/+4
* Exit if there were errors reading configuration on startup.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11486 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-08-041-0/+7
* Show config warnings/errors regardless of loglevel on startup.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11451 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-08-011-0/+6
* Various rehash fixes that it seems were introduced by untested code.•••- Remove unused ReportConfigError member - Don't report successful load (and spam modules that failed to load) if there is a config error - Restore server name before attempting to send error string to client(s) otherwise most of them won't recieve the notifications. Fixes bug #891. Still to come: report errors loudly on startup regardless of debug mode. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11450 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-08-011-11/+17
* Rehash message fixes from Ankit, thanks•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11447 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-07-311-5/+8
* Fix error reporting on rehash•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11425 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-07-011-41/+26
* Make rehash generate a new ServerInstance->Config object•••This makes it possible to cancel a pending rehash, and fixes possible threading issues with rehash and other events. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11424 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-07-011-246/+187
* Remove the ServerConfig::DirValid check that breaks symlinks•••This was included as a security check to prevent symlink attacks, but this is no longer useful; anyone who can exploit the attack now can just modify the ircd itself. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11390 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-05-251-58/+0
* Fix memory leak on rehash: opertype used char* instead of std::string•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11309 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-04-171-10/+1
* Convert snomask 'A' into snomask 'a' for local announcements, add snomask 'A'...•••Make SAMODE send a snotice to 'a' and remote to 'A' - fixes bug #822, reported by Taros We really need a wrapper to use these, but, for now it's usable. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11304 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-04-161-10/+10
* ConfigReaderThread updates: add done flag, remove main-thread-only mutex•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11256 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-03-231-0/+1
* ThreadEngine: remove excessive mutex use on thread creation•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11249 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-03-231-17/+14
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1
* Add security:genericoper as requested by Strawberry and TwinShadow.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11098 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-02-131-2/+3
* Remove/Add cmode h according to <option:allowhalfop>. Fixes bug #715 reported...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11081 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-02-111-13/+31
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* install .gdbargs to $(BASE) in make install•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10843 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-12-041-0/+1
* Rip flood/threshold out of config classes also.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10839 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-12-011-24/+20
* Thread safety fixes to avoid crashes on rehash, dont reopen logs within the r...•••muppetry. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10811 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-11-221-9/+0
* This was never supposed to be invoked on /rehash, only startup.. so move it t...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10792 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-11-021-11/+1
* Obsolete m_restrictbanned, add <security:restrictbannedusers>, default on.. t...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10785 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-11-011-0/+1
* Fix another connect class bug on rehash•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10712 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-251-2/+2
* (sort of..) Revert commit 7736e920fe6ccaf9ad1984afc70db19efd4fb8cd - remove d...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10701 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-251-31/+26
* Fix a plausible memory leak on rehash, thanks dz.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10698 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-241-0/+3
* Patch from dz to fix bug 622 (config errors build up from /rehash to /rehash)...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10690 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-3/+7
* Remove debug logging, problem over..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10688 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-221-16/+0
* Fix MacGyver's rehash woes..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10687 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-221-0/+5
* Bit of debug in case this goes wrong again...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10686 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-221-9/+27
* Remove an extremely noisy piece of debug on startup/rehash - this code works...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10683 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-201-2/+0
* Implement <security:runasuser> and <security:runasgroup> - allows for set(g|u...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10682 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-201-0/+3
* Working privs implementation, and example usage in NOTICE for mass messaging.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10662 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-181-3/+7
* Don't neglect calling User::CheckClass after SetClass, so that users don't en...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10656 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-171-0/+6
* Remove the duplicate checking/disabled setting of <connect> craq, there is a ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10654 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-171-41/+19
* Modify $copy macros in comments, fixes bug #617•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10643 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-10-151-0/+2
* Remove the old TODO comment•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10570 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-201-1/+0
* Fix a rather nasty race condition revealed by my reading through the comments...•••'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 Gravatar brain2008-09-201-30/+72
* Be more verbose in ValidateNotEmpty on failure. Patch by CyberbotX.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10544 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2008-09-141-2/+2
* Start moving IO hooking from being bufferedsocket based to residing in EventH...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10447 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-09-071-31/+0
* Make ThreadEngine::Mutex() protected too, make the user use Lock() and Unlock()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10418 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-061-18/+18
* Add <disabled:fakenonexistant> - ircd will pretend that a disabled command ju...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10327 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-271-0/+1
* Implement <options:invitebypassmodes>, optionally circumvent +blk if invited ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10120 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-071-1/+2