summaryrefslogtreecommitdiff
path: root/src/users.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #751 (wallops are not being processed remotely), reported by Taros.Gravatar w00t2009-03-091-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11191 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix +P channels being deleted when the final user /QUITs, thanks SnoFoxGravatar danieldg2009-03-021-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11161 e03df62e-2008-0410-955e-edbf42e46eb7
* Also Extend user with FORCENick when calling the actual command handler for ↵Gravatar peavey2009-02-151-0/+2
| | | | | | NICK in User::ForceNickChange to avoid serverwide desyncs. Fixes bug #733 reported by SnoFox. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11109 e03df62e-2008-0410-955e-edbf42e46eb7
* Nuke trailing spacesGravatar peavey2009-02-141-12/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow SANICK, SVSNICK, NICKLOCK, etc to override +bN N:. Fixes bug #607 and ↵Gravatar w00t2009-02-041-0/+4
| | | | | | #644, reported by SnoFox and others. Based on patch by Phoenix in bug #702. Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11029 e03df62e-2008-0410-955e-edbf42e46eb7
* Tone down some logging to make debugging a tiny bit easier.Gravatar w00t2009-01-221-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10977 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove +o from users on deoper, plausible fix for bug #653 reported by ↵Gravatar w00t2009-01-031-1/+4
| | | | | | Ankit. Let me know if it's still b0rked, please :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10940 e03df62e-2008-0410-955e-edbf42e46eb7
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove lines_in and reset_due flood protection mechanism, recvq/sendq on ↵Gravatar w00t2008-12-011-2/+1
| | | | | | | | their own now fill this role, as we have proper penalties. This tidies up *a lot* of code, and also saves a further sizeof(time_t) + sizeof(unsigned int) per user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10838 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove m_operflood, add privs: users/flood/no-throttle & ↵Gravatar w00t2008-12-011-3/+3
| | | | | | | | users/flood/increased-buffers. This also saves another sizeof(bool) per user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10837 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove OverPenalty, saves sizeof(bool) per user.Gravatar w00t2008-12-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10836 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove +s when no snomasks are set.. bug found (indirectly) by jackmcbarn.Gravatar w00t2008-11-021-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10793 e03df62e-2008-0410-955e-edbf42e46eb7
* Second attempt at time() -> SI->Time(), now problems with the original were ↵Gravatar w00t2008-11-011-3/+3
| | | | | | | | | fixed. (SI::TIME was not initialised). Thanks Namegduf! (Please test, all, valdebug etc, report odd behaviour/warnings!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove now-unneeded 4in6 hacks [danieldg]Gravatar w00t2008-11-011-6/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10781 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge commit 'ddg/out-12'Gravatar w00t2008-11-011-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10778 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix 4in6 IP resolution hack now that the leading ::ffff: is stripped from ↵Gravatar w00t2008-10-281-5/+4
| | | | | | the IP [danieldg] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10745 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove one (now unneeded) 4in6 hack.Gravatar w00t2008-10-281-8/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10744 e03df62e-2008-0410-955e-edbf42e46eb7
* Move spanningtree to use OnChangeLocalUserHost instead of OnChangeHost, this ↵Gravatar w00t2008-10-251-1/+2
| | | | | | makes more sense, and also means we can call OnChangeHost for remote clients too, making it actually match it's documentation for the first time ever! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10702 e03df62e-2008-0410-955e-edbf42e46eb7
* (sort of..) Revert commit 7736e920fe6ccaf9ad1984afc70db19efd4fb8cd - remove ↵Gravatar w00t2008-10-251-0/+10
| | | | | | dupe checking on connect classes. Now, we just delete ones with refcount 0 on rehash, and add new ones. Connection can only match a non-disabled class, so most of the braindamage should be gone from here, without causing wild pointer fun.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10701 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵Gravatar w00t2008-10-231-3/+3
| | | | | | dns.cpp in mysterious ways.. seemingly a bad pointer there somehow..? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7
* Patch from Namegduf converting all instances (where possible) of time() -> ↵Gravatar w00t2008-10-231-3/+3
| | | | | | ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
* Working privs implementation, and example usage in NOTICE for mass messaging.Gravatar w00t2008-10-181-6/+68
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10662 e03df62e-2008-0410-955e-edbf42e46eb7
* Migrate oper commands to an std::set, add a set for privs also. Change the ↵Gravatar w00t2008-10-181-2/+2
| | | | | | API a bit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10661 e03df62e-2008-0410-955e-edbf42e46eb7
* Add skeleton of HasPrivPermission.Gravatar w00t2008-10-181-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10660 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove space indenting. (Brain, *smack* :P)Gravatar w00t2008-10-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10655 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove the duplicate checking/disabled setting of <connect> craq, there is a ↵Gravatar w00t2008-10-171-10/+0
| | | | | | (better) way to do this, which is to hunt for a new connect class on all users once /rehash happens. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10654 e03df62e-2008-0410-955e-edbf42e46eb7
* Whooops! thanks psychonGravatar brain2008-10-031-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10619 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #601Gravatar brain2008-10-021-3/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10614 e03df62e-2008-0410-955e-edbf42e46eb7
* Replace the IP (in addition to hostname) for CGIIRC clients; fixes glines ↵Gravatar special2008-09-291-3/+3
| | | | | | and zlines on IPs affecting cgiirc users. Thanks to Saz|Laptop git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10607 e03df62e-2008-0410-955e-edbf42e46eb7
* Reinvert order of insert/erase into user hash_map to avoid a lil crash :)Gravatar peavey2008-09-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10557 e03df62e-2008-0410-955e-edbf42e46eb7
* Patch by dz to remove the one usage of strdup/strtok_r, which is very un-C++ ↵Gravatar special2008-09-141-15/+6
| | | | | | behavior (and silly, since we have sepstream) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10543 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed Allowed Modes to bitsets.Gravatar aquanight2008-09-131-37/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10541 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge the second interface for socket hooking into one, so it's all done by ↵Gravatar w00t2008-09-071-3/+2
| | | | | | Add/Del/GetIOHook now. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10457 e03df62e-2008-0410-955e-edbf42e46eb7
* Move all the parameters around AGAIN. See docs shortlyGravatar brain2008-08-311-3/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10364 e03df62e-2008-0410-955e-edbf42e46eb7
* Save 4 bytes (assuming sizeof(ptr) == 2) per user record, storing unneeded ↵Gravatar w00t2008-08-311-1/+1
| | | | | | pointers (self managed class) that nothing was ever done with. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10359 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix recursion crashGravatar w00t2008-08-271-3/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10330 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't force-finish a burst on a timer, instead, set bursted if a PONG is ↵Gravatar w00t2008-08-271-1/+1
| | | | | | recieved while still bursting (obviously wrong). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10326 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix..Gravatar w00t2008-08-271-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10325 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up opering a tiny bit.. pave the way for SVSOPERGravatar w00t2008-08-271-66/+61
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10324 e03df62e-2008-0410-955e-edbf42e46eb7
* Bounds checking on IsModeSet, etc, to stop silly problemsGravatar w00t2008-08-251-2/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10282 e03df62e-2008-0410-955e-edbf42e46eb7
* match() is no longer a function+no header, now a static method of InspIRCd ↵Gravatar w00t2008-08-211-2/+2
| | | | | | class, blah blah blah. Also rip out the 1.2 matcher, as it was slow, and replace it with one adapted from znc, which happens to be a tiny bit faster than 1.1's (and the fastest I've seen so far that works properly) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10212 e03df62e-2008-0410-955e-edbf42e46eb7
* I am a retard, mixx941 is my godGravatar w00t2008-08-071-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10124 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't add duplicate invitesGravatar w00t2008-08-071-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10122 e03df62e-2008-0410-955e-edbf42e46eb7
* fix compile errors under debug profile in windows.Gravatar brain2008-08-061-1/+1
| | | | | | fix some warnings too. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10108 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove last vestige of libircdfoo, by changing tag into a single ↵Gravatar w00t2008-07-291-1/+1
| | | | | | identifier marking object as requiring compilation into a .o (minor commit) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove duplicated member, kept in classes.. Possible now we have a pointer. ↵Gravatar w00t2008-07-211-7/+0
| | | | | | this saves (another) 4 bytes per user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10064 e03df62e-2008-0410-955e-edbf42e46eb7
* Change modes in channels and users to use std::bitset instead of an array. ↵Gravatar w00t2008-07-191-2/+0
| | | | | | This saves 56 bytes per channel, and 112 bytes per channel, with no loss in speed or ease of use in code. :). Thanks (VERY) much to Special for telling me about this. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10043 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix compile. Also remove write error stuff, as that was used prior to the ↵Gravatar w00t2008-07-191-85/+45
| | | | | | goodness of global culllist. This makes getting user's quit messages to them (on excess recvq etc) much easier. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10042 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unneccessary temp value which caused a win32 problem by using ↵Gravatar om2008-07-141-4/+3
| | | | | | uint32_t type. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10021 e03df62e-2008-0410-955e-edbf42e46eb7
* More broken compile stuffGravatar w00t2008-07-141-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10016 e03df62e-2008-0410-955e-edbf42e46eb7