summaryrefslogtreecommitdiff
path: root/src/users.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Backport reworked culllist from 1.2: drastically improves performance when ↵Gravatar w00t2008-02-111-13/+8
| | | | | | quitting a lot of users (e.g. on netsplit). I was originally not going to do this for 1.1, but it seems to perform well, and I can't break it under clone flooding - so in it goes. QA: please test this with lots of activity (connecting, disconnecting, ping timeouts, socket errors, anything you can throw at it) git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8905 e03df62e-2008-0410-955e-edbf42e46eb7
* This should work a bit better, voidzero. If someone had told me it was ↵Gravatar brain2008-02-051-1/+1
| | | | | | seperate servers from the start.... :p git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8838 e03df62e-2008-0410-955e-edbf42e46eb7
* Header update: 2007 -> 2008Gravatar w00t2008-01-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8695 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove some debug that got committed accidentallyGravatar w00t2008-01-101-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8688 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix inadvertant 1.2 -> 1.1 compile errorGravatar w00t2008-01-101-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8687 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix blank quits on failure to insert fd to not be blankGravatar brain2007-10-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8277 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed for 1.1 tooGravatar brain2007-10-141-13/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8191 e03df62e-2008-0410-955e-edbf42e46eb7
* Try and build thisGravatar brain2007-10-141-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8175 e03df62e-2008-0410-955e-edbf42e46eb7
* Lets try this one.Gravatar brain2007-10-141-9/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8173 e03df62e-2008-0410-955e-edbf42e46eb7
* Move some stuff around, this will move a crash to a different place and ↵Gravatar brain2007-10-131-0/+1
| | | | | | maybe we'll catch it git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8172 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed bug #404; this was caused by recieving multiple OPERTYPEs from a ↵Gravatar special2007-09-261-10/+3
| | | | | | remote server, which eventually resulted in bad pointers inside the all_opers list git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8085 e03df62e-2008-0410-955e-edbf42e46eb7
* Backport r7680: QA: Please check connect classes apply correctly before and ↵Gravatar w00t2007-08-061-8/+12
| | | | | | after DNS resolution (differing sendq, etc) git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7681 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge 7533-7535 from trunkGravatar w00t2007-07-241-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7536 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup a bunch of stuff that was using userrec::modes directly rather than ↵Gravatar brain2007-07-231-2/+2
| | | | | | userrec::IsModeSet. Same for chanrec. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7506 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #326, 'no error' quit can no longer theoretically occur because ↵Gravatar brain2007-07-191-1/+1
| | | | | | | | | all errno == 0 are weeded out with a shorthand if() on calling userrec::SetWriteError, before, only one of three occurances was. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7478 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+2007
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵Gravatar peavey2007-07-161-2007/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #349: NOTE there is important caveat about this in the example ↵Gravatar brain2007-07-151-19/+24
| | | | | | | | | | config, MAKE SURE TO READ IT. When you connect a cgi:irc client two different connect classes are checked at two different times (first the one that the website they are cgi'ing from, then later one for the user's real ip). READ THIS AND UNDERSTAND IT! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7440 e03df62e-2008-0410-955e-edbf42e46eb7
* SSL buffering tweaks. NOTE this is not a complete fix till i say so, don't ↵Gravatar brain2007-07-061-0/+3
| | | | | | use this in production yet unless youre a masochist. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7427 e03df62e-2008-0410-955e-edbf42e46eb7
* Optimizations and code tidyups. QA please check that svsnick and other ↵Gravatar brain2007-07-011-7/+5
| | | | | | forced nick changes still work right after this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7416 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed a bug that caused classes with passwords to instantly disconnect any ↵Gravatar special2007-06-281-6/+10
| | | | | | users (thanks Darom). Needs QA git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7414 e03df62e-2008-0410-955e-edbf42e46eb7
* Change some = "" to clear() and some == "" to .empty()Gravatar brain2007-06-091-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
* Add options:moronbanner. Yes really, thats what its called. See the example ↵Gravatar brain2007-06-041-1/+6
| | | | | | config. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7232 e03df62e-2008-0410-955e-edbf42e46eb7
* No fucking point at all checking for CC_DENY twice. \o/.Gravatar w00t2007-06-011-10/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7200 e03df62e-2008-0410-955e-edbf42e46eb7
* We can make one saving in userrec::WriteWallOps though - we are checking ↵Gravatar brain2007-06-011-1/+1
| | | | | | IS_LOCAL inside the loop, we've had a seprate local only user list for god knows how long, we know the users in it are local. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7199 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)Gravatar brain2007-05-301-8/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #302. He may not have had any connect lines in his conf but it ↵Gravatar brain2007-05-251-0/+7
| | | | | | | | | needed addressing anyway, because a bad rehash could leave the ircd in this state and it should just turn users away, not crash. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7138 e03df62e-2008-0410-955e-edbf42e46eb7
* Same tweak, againGravatar brain2007-05-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7095 e03df62e-2008-0410-955e-edbf42e46eb7
* Prevent vc8 from thinking we're dereferencing an end iteratorGravatar brain2007-05-201-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7059 e03df62e-2008-0410-955e-edbf42e46eb7
* Visual studio's ability to translate tabs to four spaces as default ↵Gravatar brain2007-05-191-3/+3
| | | | | | frustrates and peplexes tabnazi cat. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-3/+17
| | | | | | 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
* Change the way i/o lines are formatted in debug log to make them more ↵Gravatar brain2007-05-171-1/+1
| | | | | | | | | | intuitive. Now includes a C or S to say if its client or server, plus the fd: Thu May 17 17:56:16 2007: C[15] -> :Brain MODE #test Thu May 17 17:56:17 2007: C[15] -> :Brain WHO #test git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7039 e03df62e-2008-0410-955e-edbf42e46eb7
* Rather largeish change to class checking on connect to fix a few minor bits ↵Gravatar w00t2007-05-151-28/+44
| | | | | | and bobs here and there git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7029 e03df62e-2008-0410-955e-edbf42e46eb7
* Slight security fix of sortsGravatar w00t2007-05-151-15/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7027 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow for resizing of MAXBUF above/below 512 via non-interactive configure. ↵Gravatar brain2007-05-141-2/+2
| | | | | | | | | (Some crazy mofo on the forums asked for this, good luck its your funeral :p) THIS IS UNSUPPORTED BY US IF YOU CHANGE IT, WE WON'T EVEN TELL YOU HOW :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7022 e03df62e-2008-0410-955e-edbf42e46eb7
* This catch doesn't need to be here. :oGravatar w00t2007-05-121-11/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6991 e03df62e-2008-0410-955e-edbf42e46eb7
* We've had an IS_OPER macro for a long time. About time we started using it, ↵Gravatar w00t2007-05-121-5/+7
| | | | | | maybe? :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6990 e03df62e-2008-0410-955e-edbf42e46eb7
* Small api change with wide reaching effects in modules - Allows modification ↵Gravatar brain2007-05-101-11/+11
| | | | | | of whats displayed by NAMES on a per-nick basis, so we can have UHNAMES in a seperate module to NAMESX (and possibly do some funky other stuff in the future too!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6934 e03df62e-2008-0410-955e-edbf42e46eb7
* - (FINALLY, ffs) add realnames to connect/remote connect server notices, per ↵Gravatar w00t2007-05-081-1/+1
| | | | | | HiroP's patch. No, we're not showing SSL - SSL is a module, putting that in the core is hacky. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6920 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #278 reported by aredridel, LUSERS output is required as per RFC ↵Gravatar brain2007-05-061-0/+6
| | | | | | | | | 1459 on connect, m_conn_lusers is therefore redundant (so i removed it :p) The core automatically triggers an LUSERS on connect now, which modules can still intercept the way they always have. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6898 e03df62e-2008-0410-955e-edbf42e46eb7
* Where others charge, we give for free. Have fun and use wisely. With great ↵Gravatar brain2007-05-041-0/+13
| | | | | | power comes great responsbility. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6867 e03df62e-2008-0410-955e-edbf42e46eb7
* Implement feature request in bug #271 by HiroP, allow disabling of maxlocal ↵Gravatar brain2007-05-011-2/+2
| | | | | | and maxglobal by leaving out each value from the tag git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6857 e03df62e-2008-0410-955e-edbf42e46eb7
* Change a return NULL to a continue so that where host matches but port ↵Gravatar brain2007-05-011-1/+1
| | | | | | doesnt, skip the connect tag git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6854 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix spurious 'found host' messages after being told it couldnt.Gravatar brain2007-04-211-3/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6821 e03df62e-2008-0410-955e-edbf42e46eb7
* Feature request outlined in bug #257, allow connect/allow lines by portGravatar brain2007-04-151-2/+12
| | | | | | | Needs QA test git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6798 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed a DNS timeout race condition that could result in a NOTICE AUTH ↵Gravatar special2007-04-021-3/+8
| | | | | | message being sent after connecting (thanks NBKWH5I) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6730 e03df62e-2008-0410-955e-edbf42e46eb7
* 1.1.4+Norvegia v1.1.4Gravatar brain2007-03-251-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6713 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix two things: (1) log gets replaced by a user fd after restart causing ↵Gravatar brain2007-03-241-0/+1
| | | | | | | | | debug log to go to a user's status window (!) (2) restart failing due to segfault within libc (this is because some moron decided that stdin, stdout, and stderr should still be non-null if the files arent actually open!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6707 e03df62e-2008-0410-955e-edbf42e46eb7
* Add third parameter to OnUserQuit (quit reason for opers only) - bump api ↵Gravatar brain2007-03-151-1/+17
| | | | | | | | | | | version Add SetOperQuit and GetOperQuit methods to userrec Add OPERQUIT command to protocol - bump protocol version All this is to properly allow hidebans etc to work properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6675 e03df62e-2008-0410-955e-edbf42e46eb7
* Added OnBufferFlush, improved m_safelist, no longer works on a timer but ↵Gravatar brain2007-03-111-0/+5
| | | | | | | | | works on the writeability state of each user who is listing. Seems to test fine with 500 reet bots all listing at once. (doesnt lock up the ircd while listing them all any more, either, just lags a small amount) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6657 e03df62e-2008-0410-955e-edbf42e46eb7