summaryrefslogtreecommitdiff
path: root/src/users.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* This properly fixes options:hidebans and options:hidesplits by providing the ↵Gravatar brain2007-03-061-51/+27
| | | | | | | | | facility to have two different quit messages for a user, one an oper sees and one a normal user sees. There are default values on the oper_quit parameters through the entire source so that if oper_quit parameter is not given it defaults to the same as the user_quit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6630 e03df62e-2008-0410-955e-edbf42e46eb7
* 1) Fix for nickname overruled with new cullList stuff -- we have to change ↵Gravatar brain2007-02-191-1/+8
| | | | | | | | | | | | their nick, its not safe to quit them as it messes up the nick hash. 2) Add a mute flag for users, so we can drop commands from users who have been placed on the cullList. This is independent of the actual cullList and can be used as a general mute flag e.g. by shun modules. 3) Fix /kill to also not quit the user immediately, remove need for CMD_USER_DELETED return anywhere in the code. *** THIS NEEDS TESTING BY QA *** git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6596 e03df62e-2008-0410-955e-edbf42e46eb7
* Change /msg $* to have the correct source the same way /notice $* doesGravatar brain2007-02-171-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6588 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for ::ffff:x.x.x.x ips in user resolver, and if we see one initiate an ↵Gravatar brain2007-02-081-2/+9
| | | | | | ipv4 PTR lookup rather than ipv6 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6550 e03df62e-2008-0410-955e-edbf42e46eb7
* "is now your hidden host" -> "is now your displayed host". Wording fits ↵Gravatar brain2007-02-081-1/+1
| | | | | | better when uncloaking git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6549 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix typoGravatar brain2007-02-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6505 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for allowing dns lookups to work in mixed protocol modeGravatar brain2007-02-051-3/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6504 e03df62e-2008-0410-955e-edbf42e46eb7
* Now working in svn:Gravatar brain2007-02-051-2/+2
| | | | | | | | | | | | Client connections and port bindings on both ipv4 and ipv6 Server port bindings on both ipv4 and ipv6 Now broken due to this: cloaking (cloaks ipv4 users in an odd way when built as ipv6 enabled) DNS (query fd doesnt init properly) ...probably other stuff. Stay tuned. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6503 e03df62e-2008-0410-955e-edbf42e46eb7
* Not safe for use yetGravatar brain2007-02-051-2/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6502 e03df62e-2008-0410-955e-edbf42e46eb7
* Move quitting of clients to a central Cull List, and do quitting outside ↵Gravatar peavey2007-02-051-112/+44
| | | | | | userrec and in main loop. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6497 e03df62e-2008-0410-955e-edbf42e46eb7
* Debug the spoutmouth outputGravatar brain2007-01-171-1/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6363 e03df62e-2008-0410-955e-edbf42e46eb7
* Make this more sensibleGravatar brain2007-01-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6362 e03df62e-2008-0410-955e-edbf42e46eb7
* Log client output, so we can actually see what we're sending out, and make ↵Gravatar brain2007-01-171-0/+1
| | | | | | more sense of stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6361 e03df62e-2008-0410-955e-edbf42e46eb7
* Crusade to remove debug from stable and tested parts of the core and base ↵Gravatar brain2007-01-151-26/+0
| | | | | | | | | | modules. Most of the code here being de-noised hasnt had a crash or bug in it for many months, if not a year so the debug output is useless noise in the logfile when trying to trace a bug in a REAL problem area. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6356 e03df62e-2008-0410-955e-edbf42e46eb7
* Document dns caching, add a "bool cached" to OnLookupComplete method in ↵Gravatar brain2007-01-071-2/+2
| | | | | | Resolver, and and add " -- cached" to end of 'looking up your host' string if their result is a cached result git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6254 e03df62e-2008-0410-955e-edbf42e46eb7
* DNS caching stuff (almost done)Gravatar brain2007-01-071-8/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6252 e03df62e-2008-0410-955e-edbf42e46eb7
* DNS Stuff - this wont work right yet, it will soon (tm)Gravatar brain2007-01-071-7/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6250 e03df62e-2008-0410-955e-edbf42e46eb7
* Move all /WHOWAS related out of core and into cmd_whowas.Gravatar peavey2007-01-071-167/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6249 e03df62e-2008-0410-955e-edbf42e46eb7
* Add TTL stuff to dns system (pass it to inherited objects)Gravatar brain2007-01-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6247 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix lusers breakage introduced by latest set of optimizationsGravatar brain2007-01-031-1/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6219 e03df62e-2008-0410-955e-edbf42e46eb7
* SirOlli gets credit for this fix, because he was the only one willing to ↵Gravatar brain2007-01-031-1/+1
| | | | | | work with us till we cracked it :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6218 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for crash in desync of whowas lists on rehash. Also less mem leakage on ↵Gravatar peavey2007-01-021-35/+64
| | | | | | adding to whowas. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6217 e03df62e-2008-0410-955e-edbf42e46eb7
* Cache invalidation in the wrong place, fixes FHOST remote host change bugGravatar brain2006-12-311-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6187 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix broken cloaking introduced by last commit (we need to invalidate the ↵Gravatar brain2006-12-301-7/+6
| | | | | | cache after setting the new string, not before) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6181 e03df62e-2008-0410-955e-edbf42e46eb7
* Cached GetFullRealHost etc.Gravatar brain2006-12-301-9/+61
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6179 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweaks to instantiate less stuff when writing to a bunch of usersGravatar brain2006-12-301-6/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6172 e03df62e-2008-0410-955e-edbf42e46eb7