summaryrefslogtreecommitdiff
path: root/src/users.cpp
AgeCommit message (Collapse)Author
2008-11-01Remove now-unneeded 4in6 hacks [danieldg]w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10781 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-01Merge commit 'ddg/out-12'w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10778 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-28Fix 4in6 IP resolution hack now that the leading ::ffff: is stripped from ↵w00t
the IP [danieldg] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10745 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-28Remove one (now unneeded) 4in6 hack.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10744 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25Move spanningtree to use OnChangeLocalUserHost instead of OnChangeHost, this ↵w00t
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
2008-10-25(sort of..) Revert commit 7736e920fe6ccaf9ad1984afc70db19efd4fb8cd - remove ↵w00t
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
2008-10-23Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵w00t
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
2008-10-23Patch from Namegduf converting all instances (where possible) of time() -> ↵w00t
ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18Working privs implementation, and example usage in NOTICE for mass messaging.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10662 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18Migrate oper commands to an std::set, add a set for privs also. Change the ↵w00t
API a bit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10661 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18Add skeleton of HasPrivPermission.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10660 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-17Remove space indenting. (Brain, *smack* :P)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10655 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-17Remove the duplicate checking/disabled setting of <connect> craq, there is a ↵w00t
(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
2008-10-03Whooops! thanks psychonbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10619 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-02Fix for bug #601brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10614 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-29Replace the IP (in addition to hostname) for CGIIRC clients; fixes glines ↵special
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
2008-09-18Reinvert order of insert/erase into user hash_map to avoid a lil crash :)peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10557 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-14Patch by dz to remove the one usage of strdup/strtok_r, which is very un-C++ ↵special
behavior (and silly, since we have sepstream) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10543 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-13Changed Allowed Modes to bitsets.aquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10541 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Merge the second interface for socket hooking into one, so it's all done by ↵w00t
Add/Del/GetIOHook now. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10457 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31Move all the parameters around AGAIN. See docs shortlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10364 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31Save 4 bytes (assuming sizeof(ptr) == 2) per user record, storing unneeded ↵w00t
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
2008-08-27Fix recursion crashw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10330 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-27Don't force-finish a burst on a timer, instead, set bursted if a PONG is ↵w00t
recieved while still bursting (obviously wrong). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10326 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-27Fix..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10325 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-27Clean up opering a tiny bit.. pave the way for SVSOPERw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10324 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-25Bounds checking on IsModeSet, etc, to stop silly problemsw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10282 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-21match() is no longer a function+no header, now a static method of InspIRCd ↵w00t
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
2008-08-07I am a retard, mixx941 is my godw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10124 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-07Don't add duplicate invitesw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10122 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-06fix compile errors under debug profile in windows.brain
fix some warnings too. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10108 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-29Remove last vestige of libircdfoo, by changing tag into a single ↵w00t
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
2008-07-21Remove duplicated member, kept in classes.. Possible now we have a pointer. ↵w00t
this saves (another) 4 bytes per user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10064 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-19Change modes in channels and users to use std::bitset instead of an array. ↵w00t
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
2008-07-19Fix compile. Also remove write error stuff, as that was used prior to the ↵w00t
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
2008-07-14Remove unneccessary temp value which caused a win32 problem by using ↵om
uint32_t type. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10021 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-14More broken compile stuffw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10016 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-13Convert, convert, convertw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10009 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-13Convert a bunch of crapw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10008 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-12Change sprintf to snprintf, just in case; Update comments.om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9985 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-12Increase static buffer size to 44 to account for a full IPv6 CIDR mask: ↵om
1111:1111:1111:1111:1111:1111:1111:1111/128 + null terminator. Also remove newlines in returned mask. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9984 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-12Cleanup of some of the new CIDR code: compiles but untested; Also: My first ↵om
commit for a very long time git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9979 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-12Fix for #564w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9961 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-12Add User::GetCIDRMask(int range), will be used for CIDR throttling, etc. ↵w00t
Also probably opens up the way for /gline nickname to place CIDR bans instead of regular bans, which could be helpful. Much thanks to Om for his help. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9959 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-02Back out the incomplete linebuffering stuff that shouldn't have been committed..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9948 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-02Forward port r9946: make SVSHOLD silent to avoid useless irritation to opersw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9947 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-06Fix compile errorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9841 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-01Remove limits on assigning of oper types. Theres no practical reason to ↵brain
restrict these to nicklen length git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9831 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-01Add ProtocolInterface::Introduce() to prevent confusion over event ordering, ↵brain
and allow for more flexible protocol use git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9827 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-25First phase of conversion to dynamic limits on all the lengths, configured ↵brain
via the <limits> tag (the tag isnt there yet, these all just run on defaults in the class constructor) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9802 e03df62e-2008-0410-955e-edbf42e46eb7