aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* 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
* Add uuid hash_map - its management is automatic via userrec constructors/dest...•••Note that this means 'fake' users used to set modes etc get a uid, but this isnt a major thing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7876 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-271-9/+4
* Fix obligotary typos•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7870 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-271-2/+2
* When a numeric nick is passed to FindNick, we call FindUUID instead•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7867 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-271-0/+6
* Fix me not being able to code..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7856 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-08-271-3/+5
* Add InspIRCd::FindUUID() methods. Currently, these work off an iteration arou...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7855 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-08-271-0/+18
* Raft of fixes so that inspircd can call Cleanup() and Exit() in less 'stable'...•••Also fix OpenLog to not always exit on error, but to return a bool instead, which is much more friendly on rehash (you don't want /REHASH dieing your server if you cant write the log!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7804 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-231-5/+6
* Fix segfault on 'cant open logfile' on startup, on trying to call Exit. inste...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7802 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-231-1/+1
* Turn IsIdent into a functor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7568 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-251-1/+1
* Add stuff for functors. Currently, as a test case only InspIRCd::IsNick has b...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7564 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-251-1/+1
* Remove darwin hax from 1.2•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7526 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-07-231-11/+0
* Add some documentation•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7524 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-07-231-14/+22
* Sanity check: we don't want to deal with Config being invalid while logging•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7522 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-07-231-0/+5
* Tidyup a bunch of stuff that was using userrec::modes directly rather than us...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7506 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-231-3/+3
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-1/+534
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are au...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-534/+1
* Apply patch from BuildSmart that fixes a few issues on Mac with the logfile p...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7397 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-06-211-0/+11
* Change some = "" to clear() and some == "" to .empty()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-06-091-2/+2
* Brok.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7156 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-261-1/+1
* Reorder includes, dont worry there is method to my madness (i hope)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7093 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-211-1/+1
* - Modify ServerConfig::GetFullProgDir to just return cwd, previously it did a...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7063 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-201-1/+1
* Windows support. Tested and working to compile on freebsd and linux. Next ste...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-191-3/+3
* Move IsIdent() into helperfuncs.cpp along with IsNick/IsChannel.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7016 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-131-0/+24
* More information in error when a module cant be loaded•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6755 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-061-3/+3
* *slaps self* for not test compiling•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6231 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-061-1/+1
* Fix oper count, we cant decrement ModeCount('o') from the userrec destructor ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6228 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-061-1/+1
* Add unregistered user counter, this may also fix the (minor) m_conn_lusers sh...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6170 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-301-21/+4
* Fix for w00t•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6166 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-291-1/+1
* Add counter system for umodes to get rid of some O(n)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6163 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-291-15/+11
* Crash on /rehash fixed (old code in here passed NULL, 0 as argc, argv, this i...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6081 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-231-2/+0
* Hash rehashing change•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-231-13/+13
* Fix bug in m_dnsbl, a condition is always matched because someone was using u...•••Change around the way exit codes are formed so that we can return a sensible exit code that reflects why inspircd exited git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6076 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-231-4/+5
* Refactored /RESTART (and added InspIRCd::Restart(reason))•••Fixed bug in m_ziplinks, assigning instead of testing a var (gcc 4.1.1 picked up on this, 3.4 didnt) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6067 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-231-7/+15
* std::string something = "";•••is the most redundant and wasteful thing in the world, apart from unrealircd. BE GONE WITH IT! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6046 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-181-14/+3
* Whack a warning (unused var)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6045 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-181-1/+0
* Then, realize you got your subtraction back to front.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6044 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-181-1/+1
* Really clever VOODOO.•••RegisteredUserCount() used to take longer to execute than UnregisteredUserCount(), as all unregged users are local, so you only need to count in the local vector not the global map. Therefore, make RegisteredUserCount() just return this: this->UnregisteredUserCount() - clientlist.size() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6043 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-181-7/+1
* Jesus, look who's the commit whore today. More header updates, and removal of...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-12-151-6/+3
* Avoid pointless vsnprintf() when our loglevel doesnt meet requirements•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5970 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-121-0/+4
* Finally got read buffering working properly•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5939 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-111-2/+2
* Add 'dest' parameter to OnWhoisLine, contains the user being whois'ed (we nee...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5573 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-281-4/+4