summaryrefslogtreecommitdiff
path: root/src/users.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change all references to voodoo numbers (7, 3 etc) to the new bitwise ↵Gravatar brain2006-07-281-6/+6
| | | | | | | | | constants for user->registered Change a lot of user->fd > -1 to use the IS_LOCAL() macro git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4569 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix crashbug when exiting a remote client with threaded dns on (oops)Gravatar brain2006-07-271-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4552 e03df62e-2008-0410-955e-edbf42e46eb7
* Move a confusing debug message within its conditionalGravatar brain2006-07-201-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4461 e03df62e-2008-0410-955e-edbf42e46eb7
* Make threaded dns stable by placing some mutexes around some stl stuff (this ↵Gravatar brain2006-07-201-0/+6
| | | | | | really needs lots of testing now) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4460 e03df62e-2008-0410-955e-edbf42e46eb7
* Tried to implement sprintf that returns std::string of any size, realized it ↵Gravatar brain2006-07-181-1/+11
| | | | | | | | | would scale like unreal scales to ircnet (e.g. it wouldnt!) so took it back out. Moved chop() functionality into userrec::AddWriteBuf and make it nicer (no strlen) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4433 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved connect time by not referencing the hash for each user value, store ↵Gravatar brain2006-07-161-29/+29
| | | | | | a temp pointer git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4431 e03df62e-2008-0410-955e-edbf42e46eb7
* Ignore empty lines, don't try and process them as commandsGravatar brain2006-07-161-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4430 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove some castsGravatar brain2006-07-161-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4427 e03df62e-2008-0410-955e-edbf42e46eb7
* Craq removal service, at your serviceGravatar brain2006-07-161-23/+25
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4426 e03df62e-2008-0410-955e-edbf42e46eb7
* i'm doing this in increments, because if i try and change too much at once, ↵Gravatar brain2006-07-161-2/+2
| | | | | | it breaks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4425 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixing sendq craskGravatar brain2006-07-161-9/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4424 e03df62e-2008-0410-955e-edbf42e46eb7
* *Changed user input/output buffering to incur less copiesGravatar brain2006-07-161-10/+4
| | | | | | | *Fix warnings in command_parse git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4418 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix socket leak properly this timeGravatar brain2006-07-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4405 e03df62e-2008-0410-955e-edbf42e46eb7
* mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵Gravatar brain2006-07-161-3/+3
| | | | | | | | | | parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
* Rollback dns changeGravatar brain2006-07-141-8/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4384 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix dns socket leak found in stableGravatar brain2006-07-141-1/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4383 e03df62e-2008-0410-955e-edbf42e46eb7
* - userrec::ProcessNoticeMasks - provide a way to set or unset masks.Gravatar w00t2006-07-101-0/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4276 e03df62e-2008-0410-955e-edbf42e46eb7
* -Clone mode methods into notice mask methods for userrec.Gravatar w00t2006-07-101-0/+27
| | | | | | - Modify userrec to add char [] of notice masks, works in the same function as modes. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4273 e03df62e-2008-0410-955e-edbf42e46eb7
* Did some renaming so that the methods for modes in chanrec and userrec are ↵Gravatar brain2006-07-081-1/+6
| | | | | | | | | | | identical. bool IsModeSet(const unsigned char c); void SetMode(const unsigned char c, bool value); Fixed m_botmode for new api git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4194 e03df62e-2008-0410-955e-edbf42e46eb7
* Add userrec::HasMode, fix some typos.Gravatar brain2006-07-081-0/+5
| | | | | | | | TODO: Make more use of userrec::HasUmode('c') rather than user->modes['c'-65] *oogly* Next - get umode +o working! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4178 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert new +isw modes to new mode formatGravatar brain2006-07-081-0/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4176 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactored user modes to work like the channel modes - core and module data ↵Gravatar brain2006-07-081-2/+3
| | | | | | now the same storage format without ::modebits git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4175 e03df62e-2008-0410-955e-edbf42e46eb7
* More debug trackingGravatar brain2006-05-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3966 e03df62e-2008-0410-955e-edbf42e46eb7
* Broken kline matching in connect code (reported by LeaChim)Gravatar brain2006-05-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3959 e03df62e-2008-0410-955e-edbf42e46eb7
* Ignore EAGAIN when write()ingGravatar brain2006-05-061-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3931 e03df62e-2008-0410-955e-edbf42e46eb7
* Checks for negative fd's when adding them to the socketengine so we can ↵Gravatar brain2006-05-031-1/+4
| | | | | | generate less debug output git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3929 e03df62e-2008-0410-955e-edbf42e46eb7
* delete operator tracking in debug mode (using a macro -- live with it.)Gravatar brain2006-04-241-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
* Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵Gravatar om2006-04-081-3/+2
| | | | | | going into inspircd.*, doesn't look like I've broken anything... :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7
* Make WriteServ use WriteServ_NoFormat, code duplication = bad >:/Gravatar om2006-04-071-3/+2
| | | | | | | | | Change some weirdness using a stringstream for a simple append. Force a flush of all opers' write buffers after they get the oper notice about a /DIE git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3842 e03df62e-2008-0410-955e-edbf42e46eb7
* Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵Gravatar w00t2006-04-061-267/+331
| | | | | | THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
* IS_LOCAL check on flushwritebufGravatar brain2006-03-261-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3756 e03df62e-2008-0410-955e-edbf42e46eb7
* Possible fix for a desync conditionGravatar w00t2006-03-251-2/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3753 e03df62e-2008-0410-955e-edbf42e46eb7
* kill_link safety checksGravatar brain2006-03-251-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3752 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to use IS_LOCAL not user->fd > -1Gravatar brain2006-03-131-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3699 e03df62e-2008-0410-955e-edbf42e46eb7
* Adding to the buffer was clearing it first, reverting the buffering to a ↵Gravatar brain2006-03-121-4/+2
| | | | | | pre-alpha-6 kind of way of doing stuff (erk) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3689 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup and move ConvToStr to a publically accessible placeGravatar brain2006-03-101-11/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3640 e03df62e-2008-0410-955e-edbf42e46eb7
* Another typoGravatar brain2006-03-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3639 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved more stuff into right placesGravatar brain2006-03-101-17/+35
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3637 e03df62e-2008-0410-955e-edbf42e46eb7
* Changing by-value parameters to const referencesGravatar om2006-03-091-5/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3605 e03df62e-2008-0410-955e-edbf42e46eb7
* SpeedupsGravatar brain2006-03-091-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3602 e03df62e-2008-0410-955e-edbf42e46eb7
* Added userrec::modebits - fast way of checking if user has +swi rather than ↵Gravatar brain2006-03-091-1/+1
| | | | | | an icky strchr git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed to correctly use iteratorGravatar brain2006-03-091-6/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3583 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed to use iteratorsGravatar brain2006-03-091-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3580 e03df62e-2008-0410-955e-edbf42e46eb7
* Probably wont compile yet - purge_empty_channels refactorGravatar brain2006-03-091-5/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3579 e03df62e-2008-0410-955e-edbf42e46eb7
* Flush user buffers more often (every 30 iterations)Gravatar brain2006-03-071-0/+2
| | | | | | | Run whowas hash maintainance every hour git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3527 e03df62e-2008-0410-955e-edbf42e46eb7
* Whois typo fixesGravatar brain2006-03-071-5/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3525 e03df62e-2008-0410-955e-edbf42e46eb7
* Whowas refactor - probably wont compile yetGravatar brain2006-03-071-49/+58
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3523 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved userlist to avoid strlenGravatar brain2006-03-071-6/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3514 e03df62e-2008-0410-955e-edbf42e46eb7
* Sped up introduction of nicks using vector::resize() rather than the craq++ ↵Gravatar brain2006-03-051-2/+1
| | | | | | | | | loop (wtf was i thinking doing it that way?) Removed 'client connecting notices dont show locally during burst' -- this is silly as it doesnt work remotely and is pretty much pointless git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3460 e03df62e-2008-0410-955e-edbf42e46eb7
* Slight optimization hereGravatar brain2006-03-021-3/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3434 e03df62e-2008-0410-955e-edbf42e46eb7