summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
Commit message (Expand)AuthorAgeFilesLines
* Change to new execution directory structure•••Don't change CWD into bin/ Remove path-resolution hacks from configuration Store pidfile and xline DBs in data, logs in logs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11866 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-131-15/+1
* Fix valgrind issues and crashes on exit•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11794 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-021-9/+8
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-5/+5
* Create StreamSocket for IO hooking implementation•••Fixes the SSL SendQ bug Removes duplicate code between User and BufferedSocket Simplify SSL module API Simplify EventHandler API (Readable/Writeable moved to SE) Add hook for culled objects to invoke callbacks prior to destructor Replace SocketCull with GlobalCull now that sockets can close themselves Shorten common case of user read/parse/write path: User::Write is now zero-copy up to syscall/SSL invocation User::Read has only two copy/scan passes from read() to ProcessCommand git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11752 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-211-8/+4
* ModResult conversion: Change return type of all module functions•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-2/+2
* Cast rework: use C++ style static_cast<> instead of C-style casts•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11595 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-2/+2
* Fixes for config reader•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-121-10/+0
* 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
* Nuke trailing spaces•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-02-141-7/+4
* Fix m_nationalchars using a copy and paste of my unsafe copy and paste algori...•••Finally make this function a core utility function and remove the copies from 3 modules m_alias m_nationalchars and m_sqlauth git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10990 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-01-231-0/+3
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-2/+2
* Make this less confusing for us and users•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10746 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-281-31/+1
* match() is no longer a function+no header, now a static method of InspIRCd cl...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10212 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-211-1/+0
* Change extban seperator in 005 to match charybdis and unreal•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10107 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-061-2/+2
* Remove last vestige of libircdfoo, by changing tag into a single identifier...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-07-291-1/+1
* Applied patch by psychon to make AddExtBanChar correctly take a single char•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10024 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2008-07-161-4/+5
* Add InspIRCd::AddExtBanChar() to avoid copypasta.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10017 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-07-141-0/+13
* First phase of conversion to dynamic limits on all the lengths, configured vi...•••(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 Gravatar brain2008-05-251-10/+10
* Make User:: nick/ident/dhost/fullname and some other things std::string inste...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9748 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-05-181-1/+1
* Comment and improve check for access to ~/.inspircd/startup.log•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9606 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-05-041-1/+21
* Make creation of ~/.inspircd properly check for EEXIST•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9605 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-05-031-1/+1
* See configreader.cpp line 764 to see how to declare deprecated items. This is...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9507 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-151-1/+1
* Port a bunch of methods of InspIRCd to functors. IsChannel, IsSID, Rehash.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9474 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-131-2/+2
* Fixes for default log. It is now called ~/.inspircd/startup.log unless overri...•••If the home directory cant be found from either HOME or USERPROFILE env vars, then the startup.log is dumped to the current directory. Removed -nolog from ./inspircd debug, antique setting. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9472 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-121-1/+52
* Remove 'default log' and <options:loglevel> (wtf?)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9460 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-111-27/+1
* Remove deprecated InspIRCd::Log() method so people don't use it etc•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9320 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-04-041-21/+0
* Convert remaining InspIRCd::Log() calls to new logging system•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9001 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-02-221-2/+2
* Merge warning about InspIRCd::Log()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8945 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-02-151-2/+1
* Make -nofork work properly with logging now.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8944 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-02-151-2/+9
* Add -Wshadow to cflags, and fix a bunch of warnings that come with it. Add a ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8892 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-111-6/+6
* Code for loading <log method=file> tags from config, but this still needs to ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8885 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-02-101-1/+3
* Per-logstream loglevels.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8871 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-02-101-1/+1
* w00t br0ked it! :p•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8869 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-101-1/+1
* New logging implementation. Also write messages about InspIRCd::Log() being d...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8858 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-091-41/+4
* Move some stuff to usermanager, remove a little header insanity, remove trace...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8790 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-021-127/+11
* Remove InspIRCd::WriteOpers in favour of snomask O•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8728 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-171-32/+0
* Move a number of methods from class InspIRCd to class UserManager•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8726 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-171-31/+0
* Validate <server:id> on startup if provided, thx Brain•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8721 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-161-0/+10
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-2/+2
* Pedantic safe•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8317 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-231-1/+1
* Remove the need for a bunch of the hard coded arrays/hashes by scanning the s...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8307 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-221-0/+2
* Remove a wrapper, it's easy to read as is :p•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8300 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-10-221-6/+0
* Move InspIRCd::IsValidMask() to helperfuncs.cpp•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8298 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-10-221-0/+32
* Move some other stuff to helperfuncs (uline related, and timestring)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8213 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-10-151-0/+22
* Move InspIRCd::Duration from command_parse to helperfuncs•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8211 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-10-151-0/+45
* In the grand tradition of huge fucking commits:••• - chanrec -> Channel - userrec -> User Enjoy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-10-151-21/+21
* Fixed bug #404; this was caused by recieving multiple OPERTYPEs from a remote...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8084 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2007-09-261-1/+1
* Move everything module-related out of InspIRCd and into ModuleManager, there ...•••All modules in the core distribution should also be updated in line with these changes. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7985 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2007-08-281-24/+0
* Remove more unnecessary header traffic•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7887 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-08-271-4/+0
* Add FindNickOnly, that wont fall through to uid checks if isdigit(*first). We...•••Fix cmd_nick to not treat all nicks as invalid and make the client give up. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7883 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-271-1/+21