summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
AgeCommit message (Collapse)Author
2007-08-27Remove more unnecessary header trafficw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7887 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add FindNickOnly, that wont fall through to uid checks if isdigit(*first). ↵brain
We may need this. (i thought we did for this fix, we dont) 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
2007-08-27Add uuid hash_map - its management is automatic via userrec ↵brain
constructors/destructors. 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
2007-08-27Fix obligotary typosbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7870 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27When a numeric nick is passed to FindNick, we call FindUUID insteadbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7867 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix me not being able to code..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7856 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add InspIRCd::FindUUID() methods. Currently, these work off an iteration ↵w00t
around the whole client list. This sucks, and will be changed to a map the same as FindNick(). Also update FindNick's docs a little out of anal habit: it returns a user, not a nick. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7855 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23Raft of fixes so that inspircd can call Cleanup() and Exit() in less ↵brain
'stable' circumstances, e.g. when half initialized, and it wont segfault. 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
2007-08-23Fix segfault on 'cant open logfile' on startup, on trying to call Exit. ↵brain
instead just call plain exit() as we're screwed and cant log any unload messages. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7802 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Turn IsIdent into a functorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7568 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Add stuff for functors. Currently, as a test case only InspIRCd::IsNick has ↵brain
been 'functorized' git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7564 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-23Remove darwin hax from 1.2w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7526 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-23Add some documentationw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7524 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-23Sanity check: we don't want to deal with Config being invalid while loggingw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7522 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-23Tidyup a bunch of stuff that was using userrec::modes directly rather than ↵brain
userrec::IsModeSet. Same for chanrec. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7506 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵peavey
auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-21Apply patch from BuildSmart that fixes a few issues on Mac with the logfile ↵peavey
path and ircdeamon user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7397 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09Change some = "" to clear() and some == "" to .empty()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-26Brok.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7156 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21Reorder includes, dont worry there is method to my madness (i hope)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7093 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20- Modify ServerConfig::GetFullProgDir to just return cwd, previously it did ↵w00t
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
2007-05-19Windows support. Tested and working to compile on freebsd and linux. Next ↵w00t
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
2007-05-13Move IsIdent() into helperfuncs.cpp along with IsNick/IsChannel.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7016 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06More information in error when a module cant be loadedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6755 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06*slaps self* for not test compilingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6231 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06Fix oper count, we cant decrement ModeCount('o') from the userrec destructor ↵brain
as its already been removed earlier git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6228 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Add unregistered user counter, this may also fix the (minor) m_conn_lusers ↵brain
shows current connection as unregged git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6170 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Fix for w00tbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6166 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Add counter system for umodes to get rid of some O(n)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6163 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Crash on /rehash fixed (old code in here passed NULL, 0 as argc, argv, this ↵brain
is BAD BAD BAD.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6081 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Hash rehashing changebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Fix bug in m_dnsbl, a condition is always matched because someone was using ↵brain
unsigned int to check a return val that can be -1 *slap w00t* 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
2006-12-23Refactored /RESTART (and added InspIRCd::Restart(reason))brain
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
2006-12-18std::string something = "";brain
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
2006-12-18Whack a warning (unused var)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6045 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-18Then, realize you got your subtraction back to front.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6044 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-18Really clever VOODOO.brain
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
2006-12-15Jesus, look who's the commit whore today. More header updates, and removal ↵w00t
of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-12Avoid pointless vsnprintf() when our loglevel doesnt meet requirementsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5970 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-11Finally got read buffering working properlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5939 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28Add 'dest' parameter to OnWhoisLine, contains the user being whois'ed (we ↵brain
need this for +H and probably the stuff w00t is doing too) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5573 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28Add support for OnWhoisLine, which allows modules to change or drop any line ↵brain
of whois before its sent to a user git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5570 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-23Give some actual information when the log file fails to openspecial
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5530 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06And fix typosbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5427 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06tidy up WriteModebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5426 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-02IsNick moved to helperfuncs.cpp, makes a lot more sense than inspircd.cppw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5388 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-30Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include listsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-18Missing a space in log messagesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4972 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-18NONBLOCKING LOGGER!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4971 e03df62e-2008-0410-955e-edbf42e46eb7