6778 Commits

Author SHA1 Message Date
brain
18ea9418c4 Update comment to say we need to SQUIT. This is a minor thing so im not going to fix it yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7913 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 19:23:17 +00:00
w00t
36567f1656 This comment is no longer valid
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7912 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 19:15:06 +00:00
w00t
02aee47d72 Document the use of SVSNICK to fix a remote user on collide
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7911 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 19:12:22 +00:00
w00t
26d10afd16 Okay. Make it compile too, and make equal TS collision work correctly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7910 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 19:05:26 +00:00
w00t
5e853ca055 Nickname collision: third revisitation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7909 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 19:02:32 +00:00
brain
e04e8aaf9b NOTICE, PRIVMSG, WHOIS; dont allow local users to /msg <uid> etc. This 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-27 18:30:50 +00:00
w00t
25f99f5c21 Don't try do lookups by nickname any more, all s2s traffic should be using 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-27 18:30:33 +00:00
w00t
1ebcd32084 Remove some old style compatibility checking for 1.0-alpha servers, this 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-27 18:26:53 +00:00
w00t
0600e5bc14 nickflood: Allow changes to UID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7905 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 18:22:10 +00:00
w00t
fb6fa4c48e nicklock: Allow change to a UID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7904 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 18:21:22 +00:00
w00t
0ae5c96c69 restrictbanned: Allow changes to UID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7903 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 18:18:16 +00:00
w00t
afa437fc03 nonicks: allow switches to UID, so we don't get loads of unnecessary kills on collides/svsnick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7902 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 18:17:10 +00:00
w00t
ae30e67a05 If SVSNICK fails, attempt to change to UID, before quitting as a last resort (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-27 18:15:26 +00:00
w00t
dd7cc526c8 TS may be a more elegant solution, but it is fucking horrible to write code 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-27 17:43:23 +00:00
w00t
4170a17c3c Oops, forgot a branch (the logic here totally sucks, it will need cleaning 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-27 17:34:57 +00:00
w00t
ed31c3ee4a Nick collision handling with TS rules. This probably doesn't work yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7898 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 17:30:39 +00:00
brain
f558742ad6 Remove some printfs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7897 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 16:50:28 +00:00
brain
e30482976a Fix for problems with translations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7896 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 16:47:30 +00:00
w00t
bcf2e57d81 Debug to try figure this out ..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7895 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 16:39:32 +00:00
brain
ffbbfa9cd6 Add documentation comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7894 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 16:08:21 +00:00
brain
b9cd0dda01 TranslateUIDs now correctly returns number of substitutions made
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7893 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 16:06:20 +00:00
w00t
2b3394855d Add a metric assload of TRANSLATE macros to modules.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7892 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 16:05:59 +00:00
brain
9bea99f973 Translation of mode parameters to uids where neccessary
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7891 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 16:00:46 +00:00
brain
853f4d66ca Some useful defines for tidy definition of translation lists. See 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-27 15:35:14 +00:00
brain
036f62f864 Auto translation nick->uuid for command params should now work in all 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-27 15:27:35 +00:00
brain
cd2406617f More translation stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7888 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 15:14:27 +00:00
w00t
4bbca0643b Remove more unnecessary header traffic
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7887 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 15:02:46 +00:00
brain
f067a146d1 Add vector<TranslationType> to commands, used to map fields to uid translations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7886 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 15:01:14 +00:00
w00t
4e7c9f5a92 Remove unnecessary header traffic
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7885 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 14:49:08 +00:00
w00t
9d1b979fbc Changes to UID generation:
- 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-27 14:20:55 +00:00
brain
90ee2ee38c Add FindNickOnly, that wont fall through to uid checks if isdigit(*first). 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-27 13:54:15 +00:00
brain
95f6575ee9 Whoops, i had a ! and i didnt need one
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7882 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 13:40:12 +00:00
brain
aee072aed7 Fixed sigabrt
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-27 13:36:11 +00:00
brain
c125dd1dec Fix for bug #401 reported by DarkStorm
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7879 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 12:43:47 +00:00
brain
31478b968f Add options:maxtargets that was somehow omitted, fixes bug #400 (Reported by DarkStorm)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7877 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 12:41:25 +00:00
brain
1c5e9d246a Add uuid hash_map - its management is automatic via userrec 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-27 11:43:12 +00:00
brain
78474291ab A few tidyups, and comment how the new constructors work (so that w00t 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-27 11:34:16 +00:00
brain
5626380bc9 More uuid fixes, and whack some warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7874 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 11:30:38 +00:00
brain
0ba4b96bba Allocate uid in userrec constructor. Optional param added, if its empty, the 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-27 11:24:43 +00:00
brain
9cb422d3e5 Squash warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7872 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 11:04:03 +00:00
brain
eb12142b8d Initialise cmd_nick::allowinvalid in constructor init-list, and document 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-27 11:03:32 +00:00
brain
c3f6fdd8a7 Fix obligotary typos
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7870 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 11:01:20 +00:00
brain
d2be3310ba Add a call to the NICK handler that allows toggling of allowing invalid 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-27 10:57:25 +00:00
brain
c24fcf728d Make nickname-overruled rules change the user back to their uid, not to nnn-unknown
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7868 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 10:50:23 +00:00
brain
115e6b72fe When a numeric nick is passed to FindNick, we call FindUUID instead
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7867 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 10:45:51 +00:00
brain
0ad2ac70a2 Translate some stuff to uid.
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-27 10:37:29 +00:00
w00t
759f3160a7 Make this lookup by UUID ahead of nick also, so things work properly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7865 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 03:25:48 +00:00
w00t
95fdb54284 Make the server to server parser look for UUID. Currently it will fall back 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-27 03:14:06 +00:00
w00t
c24c23f50c Oops, don't forget to save UUID of remote clients
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7863 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 03:08:39 +00:00
w00t
a4b28b9eb4 Make FJOIN send UUID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7862 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 02:59:56 +00:00