summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-08-27Remove check for duplicate UUID, constructor of userrec throws for us insteadw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7916 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Update documentation to indicate that userrec::userrec() may throw on ↵brain
duplicate uuid git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7915 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Catch exceptions here for duplicate uuid (it shouldnt happen, which is why ↵brain
the exception message is so rediculous) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7914 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Update comment to say we need to SQUIT. This is a minor thing so im not ↵brain
going to fix it yet git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7913 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27This comment is no longer validw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7912 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Document the use of SVSNICK to fix a remote user on collidew00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7911 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Okay. Make it compile too, and make equal TS collision work correctly.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7910 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Nickname collision: third revisitationw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7909 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27NOTICE, PRIVMSG, WHOIS; dont allow local users to /msg <uid> etc. This ↵brain
prevents a primative possible type of 'stalking' of users. We still need to use full FindNick for remote use. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7908 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Don't try do lookups by nickname any more, all s2s traffic should be using ↵w00t
UID now. If it's not, well, we need to know anyway. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7907 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Remove some old style compatibility checking for 1.0-alpha servers, this ↵w00t
really isn't needed anymore, as they will ERROR off anyway with an unknown command git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7906 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27nickflood: Allow changes to UIDw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7905 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27nicklock: Allow change to a UIDw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7904 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27restrictbanned: Allow changes to UIDw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7903 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27nonicks: allow switches to UID, so we don't get loads of unnecessary kills ↵w00t
on collides/svsnick git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7902 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27If SVSNICK fails, attempt to change to UID, before quitting as a last resort ↵w00t
(if a module disallows change to a UID, they need shooting) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7901 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27TS may be a more elegant solution, but it is fucking horrible to write code ↵w00t
for, and hard to get right. Let's just change both. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7900 e03df62e-2008-0410-955e-edbf42e46eb7
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