summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-08-27Oops, forgot a branch (the logic here totally sucks, it will need cleaning ↵w00t
up. I want to get it working first.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7899 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Nick collision handling with TS rules. This probably doesn't work yet.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7898 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Remove some printfsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7897 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix for problems with translationsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7896 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Debug to try figure this out ..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7895 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add documentation commentsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7894 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27TranslateUIDs now correctly returns number of substitutions madebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7893 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add a metric assload of TRANSLATE macros to modules.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7892 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Translation of mode parameters to uids where neccessarybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7891 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Some useful defines for tidy definition of translation lists. See ↵brain
constructor of cmd_cban in m_cban.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7890 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Auto translation nick->uuid for command params should now work in all ↵brain
modules which set their translation types. None do atm. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7889 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27More translation stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7888 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Remove more unnecessary header trafficw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7887 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add vector<TranslationType> to commands, used to map fields to uid translationsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7886 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Remove unnecessary header trafficw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7885 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Changes to UID generation:w00t
- Endless loop until we find a UID that is in use (this will be problematic if we get 2 billion users to a server..) - Once we reach the end of the UID namespace, start back at AAAA - Remove an unneeded allocation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7884 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add FindNickOnly, that wont fall through to uid checks if isdigit(*first). ↵brain
We may need this. (i thought we did for this fix, we dont) Fix cmd_nick to not treat all nicks as invalid and make the client give up. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7883 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Whoops, i had a ! and i didnt need onebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7882 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fixed sigabrtbrain
NOTE to w00t: When a user gets allocated a uid that is duplicate, the constructor throws. This was happening because i didnt pay attention to what i wrote and it always added uid "" :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7881 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix for bug #401 reported by DarkStormbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7879 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add options:maxtargets that was somehow omitted, fixes bug #400 (Reported by ↵brain
DarkStorm) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7877 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add uuid hash_map - its management is automatic via userrec ↵brain
constructors/destructors. Note that this means 'fake' users used to set modes etc get a uid, but this isnt a major thing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7876 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27A few tidyups, and comment how the new constructors work (so that w00t ↵brain
doesnt wonder where the feck his strlcpys went) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7875 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27More uuid fixes, and whack some warningsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7874 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Allocate uid in userrec constructor. Optional param added, if its empty, the ↵brain
server allocates one, if its not empty the user gets the one given (this is used for remote users) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7873 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Squash warningbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7872 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Initialise cmd_nick::allowinvalid in constructor init-list, and document ↵brain
HandleInternal (now two commands that use this, cmd_whowas and this one) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7871 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix obligotary typosbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7870 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add a call to the NICK handler that allows toggling of allowing invalid ↵brain
nicks to on or off. Use it in ForceNickChange to allow forced nickchange of a nick to a uid. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7869 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Make nickname-overruled rules change the user back to their uid, not to ↵brain
nnn-unknown git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7868 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27When a numeric nick is passed to FindNick, we call FindUUID insteadbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7867 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Translate some stuff to uid.brain
stuff with a comment 'XXX UID' needs addressing (probably by me) today. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7866 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Make this lookup by UUID ahead of nick also, so things work properly.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7865 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Make the server to server parser look for UUID. Currently it will fall back ↵w00t
and try to find by nick too, to help catch legacy use of nickname prefixes. This will not be the case eventually. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7864 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Oops, don't forget to save UUID of remote clientsw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7863 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Make FJOIN send UUIDw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7862 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Convert a metric assload of stuff to use UIDw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7861 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Send UID (not nick) on client connectionw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7860 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Send UID prefix on module commands across links.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7859 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Paranoia: Check for UUID collision on UID reciept, remove both clients if a ↵w00t
collision occurs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7858 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27This will royally fuck 1.2's linking right now, but..w00t
- Don't use NICK to introduce clients - DO use UID - On nick collide, change our client to their UID and let the other server do the same with theirs. The last point is currently the broken bit, see, we can't change a nick to something starting with a didget, because that breaks nick rules.. need to overcome this somehow. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7857 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix me not being able to code..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7856 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Add InspIRCd::FindUUID() methods. Currently, these work off an iteration ↵w00t
around the whole client list. This sucks, and will be changed to a map the same as FindNick(). Also update FindNick's docs a little out of anal habit: it returns a user, not a nick. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7855 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix to SVSJOIN: disallow invalid channel names. Needs backport.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7852 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Now we know it works, remove debugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7851 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Whoopsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7850 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Automatic SID generation based on code similar to the STL hash function and ↵brain
using server name and server gecos git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7849 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27UUID is now generated and set on client add, and shown after 005 via numeric ↵w00t
042: %s :your unique ID. This also replaces the fd-unknown style of nicks we used prior to recieving NICK from a client, just because it looks tidier. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7848 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26And zero UUID in constructor.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7847 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26Initial UUID generation code. Generates a TS6 compatible UUID.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7846 e03df62e-2008-0410-955e-edbf42e46eb7