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
w00t
f18c9106d2
Convert a metric assload of stuff to use UID
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7861 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 02:55:13 +00:00
w00t
7be3108de0
Send UID (not nick) on client connection
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7860 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 02:45:35 +00:00
w00t
a2456eeec1
Send UID prefix on module commands across links.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7859 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 02:41:09 +00:00
w00t
dc62c529ff
Paranoia: Check for UUID collision on UID reciept, remove both clients if a collision occurs.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7858 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 02:17:48 +00:00
w00t
78fa4165c9
This will royally fuck 1.2's linking right now, but..
...
- 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-27 02:08:28 +00:00
w00t
099124efd7
Fix me not being able to code..
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7856 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 01:35:55 +00:00
w00t
0c9434cde9
Add InspIRCd::FindUUID() methods. Currently, these work off an iteration 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-27 01:01:20 +00:00
w00t
7936e1b8ba
Fix to SVSJOIN: disallow invalid channel names. Needs backport.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7852 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 00:39:59 +00:00
brain
f8c448a812
Now we know it works, remove debug
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7851 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 00:32:06 +00:00
brain
fa79c1646d
Whoops
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7850 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 00:31:41 +00:00
brain
07e45de533
Automatic SID generation based on code similar to the STL hash function and using server name and server gecos
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7849 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 00:29:56 +00:00
w00t
5afa330604
UUID is now generated and set on client add, and shown after 005 via numeric 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-27 00:12:59 +00:00
w00t
ffd4e65d78
And zero UUID in constructor.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7847 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 23:50:10 +00:00
w00t
a997f61841
Initial UUID generation code. Generates a TS6 compatible UUID.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7846 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 23:47:52 +00:00
w00t
1075956100
Add skeleton functions for UID stuff.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7845 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 23:07:06 +00:00
w00t
ca2a909147
Bump ABI version and protocol version. Note that this really means 1.1 and 1.2 are diverged now, and won't link/load modules of each other. This is in preperation for me (possibly) messing with UID in trunk.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7844 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 21:59:41 +00:00
peavey
3f528f4c93
Make this compile, was missing a (
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7843 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 21:57:47 +00:00
w00t
497a7e297b
Add 'you are banned' numeric to banredirect output, from avenger's patch
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7842 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 21:18:34 +00:00
brain
9cd8fe39d5
Added new announceinvite setting i discussed briefly with w00t and i like myself:
...
# The value 'dynamic' varies between 'ops' and 'all' #
# settings depending on if the channel is +i or not. #
# When the channel is +i, messages go only to ops, #
# and when the channel is not +i, messages go to #
# everyone. In short, the messages will go to every #
# user who has power of INVITE on the channel. This #
# is the recommended setting. #
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7841 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 21:15:47 +00:00
w00t
035c7089cc
Hide remote oper up notices if quiet bursts are enabled etc. Adapted from avenger's patch. Untested.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7840 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 21:13:14 +00:00
brain
644c5992ca
Proper fix for end-of-list numerics on restricted lists in bug #386 , rather than a hackish nonmodular one.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7838 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 21:01:04 +00:00
brain
d58d9fb495
Add option to set invite announcements to nobody, ops only, or all users, based on options:announceinvites. Part of bug #386 , should not be backported.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7837 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 20:43:15 +00:00
brain
3a7af31bcd
Fix for bug #376 - FEATURE - (sorry w00t) - not backporting to stable.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7835 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 20:14:35 +00:00
brain
d1d5a31c13
Add m_commonchans.so (documented in example conf, no wiki yet) resolves bug #342 feature request by Casey
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7832 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 20:01:15 +00:00
brain
76f7cf3ba5
Revised fix for bug #367 pointed out during qa by owine, thanks :)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7830 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 16:59:00 +00:00
brain
8e14d91fb9
Document ModuleSpanningTree::RemoteMessage. Maybe useful for other stuff.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7828 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 16:55:38 +00:00
brain
5577604494
Routing failure messages back where they came from on /rconnect
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7826 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26 16:49:12 +00:00
brain
5f17af5118
Implement bug #396 , feature request from Bricker
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7824 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-25 11:26:44 +00:00
brain
440eeae649
Fix for bug #397
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7821 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-25 11:12:44 +00:00
brain
3895566b53
Add 'require 5.8.0' to the very top of every module to make the failure message when you run an ancient perl a bit more descriptive.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7820 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-25 10:36:20 +00:00
brain
46d3b250ba
The world wont end, but configure might :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7817 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-24 16:42:22 +00:00
brain
f37ed732e8
Slightly better regexps, pointed out by stskeeps
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7815 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-24 16:10:19 +00:00
brain
81a15c60c0
Someone really should fix the blocking connects on windows craq...
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7813 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 22:58:37 +00:00
brain
4a91fd0ddf
Move the close() wrapper out of the win32wrapper.h, and into its new proper place at SocketEngine::Close()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7812 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 22:30:46 +00:00
brain
297f19c005
Document all this shit!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7811 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 22:17:20 +00:00
brain
d0d36795e8
Craquity craq De-craq!
...
This is probably broken on windows, do not attempt to use there yet unless you like broken stuff. Cant say for sure as i havent even tried to build yet and most likely wont tonight.
--- Abstract most of the berkely socket API out into SocketEngine derived classes. SocketEngine base class implements standard berkely sockets that 'real mens systems' like linux
and freebsd have. For socketengine_iocp we implement the windows specific nonesense like the special things needed for udp and accept (ick).
All this to eliminate a bunch of ifdefs.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7810 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 22:06:04 +00:00
brain
61816ef0dd
Tidyup some duplicated code
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7808 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 20:16:18 +00:00
brain
39ebb06a6a
Move WSACleanup() into IOCPEngine destructor, eliminating an "#ifdef WIN32" from inspircd.cpp
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7807 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 20:05:05 +00:00
brain
443b0f9645
Raft of fixes so that inspircd can call Cleanup() and Exit() in less 'stable' circumstances, e.g. when half initialized, and it wont segfault.
...
Also fix OpenLog to not always exit on error, but to return a bool instead, which is much more friendly on rehash (you don't want /REHASH dieing your server if you cant write the log!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7804 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 19:57:02 +00:00
brain
ab7a861a91
Fix segfault on 'cant open logfile' on startup, on trying to call Exit. instead just call plain exit() as we're screwed and cant log any unload messages.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7802 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 19:32:59 +00:00
brain
deb8574079
Add some stuff to change how we process a token sepeperated stream
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7800 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 18:06:26 +00:00
brain
3f3d3d3028
Fix for irc::sepstream for when there are multiple seperators in a row, do not drop the rest of the line, strip the seperators
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7798 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 17:17:18 +00:00
brain
8214184319
Switch around the two operations in MatchCIDRBits to make negative matches faster (and not change the speed of positive matches)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7797 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 16:35:59 +00:00
brain
05716503f3
Bricker said so.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7795 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 16:09:40 +00:00