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
brain
f09013dd67
Whoops, found a bug in it anyway :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7791 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-21 20:08:05 +00:00
brain
b7e299c2e1
Implement feature in bug #395 reported by stealth, and tidy up a bit
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7789 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-21 18:52:07 +00:00
brain
3499c913a0
Fix for delete-when-we-shouldnt bug similar to what stskeeps found yesterday
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7787 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-21 18:41:24 +00:00
brain
74f26a0375
Checks for libgnugetopt in /usr/local/lib before continuing
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7785 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 21:05:44 +00:00
brain
2a0f1441ef
Improve this a lot
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7783 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 20:53:24 +00:00
brain
cf7c73ec7f
Extra stuff so that freebsd 4 may work (needs someone with this OS to test!)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7781 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 20:40:11 +00:00
brain
4b75046c49
Add comments explaining why we have sockaddr[2] so that nobody goes 'w...t..f...'
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7779 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 18:35:22 +00:00
brain
03a3ca9019
Fix a bug i just introduced while playing with the code
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7777 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 18:29:27 +00:00
brain
959e902e57
The only possibility for the issue sts found is that a socket is deleted but also ends up in the socket cull list somehow.
...
To ensure that the socket does not get deleted, remove the delete and replace with an explicit call to insert into the socket cull list.
We were grappling with these issues in early 1.1 with the userrec cull list, too.
NOTE for later 1.2's consider making CullList a base class which we can derive from to delete lists of other items than userrecs.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7775 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 18:02:50 +00:00
brain
96b776fd27
Add a pair of colons which should fix some KILL messages being dropped and fix some desyncs on nick collision
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7772 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 17:09:25 +00:00
brain
4fc1a35082
Fixes for m_nicklock desync
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7770 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 16:46:42 +00:00
brain
27ebe00e93
Increase max time difference to 600 secs
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7769 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 16:41:33 +00:00
brain
56488a7f6c
Whoops, i left a value out of the array, and gcc didnt warn!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7768 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 16:21:32 +00:00
brain
123edca101
Whoops! trunk-only fix to config reader so it doesnt bomb out if you omit an optional tag
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7767 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 16:15:38 +00:00