summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove RSQUIT2 routing hack for SQUIT now we use one param RSQUIT.Gravatar peavey2007-06-151-55/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7325 e03df62e-2008-0410-955e-edbf42e46eb7
* This is not, not routing of SQUIT, nothing to see here, move along :>Gravatar peavey2007-06-131-0/+55
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7301 e03df62e-2008-0410-955e-edbf42e46eb7
* strip RSQUIT from protocol, part of new RSQUIT, not ready for use yet.Gravatar peavey2007-06-131-51/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7285 e03df62e-2008-0410-955e-edbf42e46eb7
* A ton more clear() and empty() stuff thats been lingering on the long term ↵Gravatar brain2007-06-091-17/+15
| | | | | | todo for too long a term :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7264 e03df62e-2008-0410-955e-edbf42e46eb7
* Add back remote kill handler for server origin killsGravatar brain2007-06-061-0/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7249 e03df62e-2008-0410-955e-edbf42e46eb7
* Patch fixing (almost) remote kill server notices, by just passing KILL onto ↵Gravatar w00t2007-06-061-34/+0
| | | | | | cmd_kill and not attempting to duplicate code for it in spanningtree. Dev: Two small issues are left with this, see comments in cmd_kill.cpp. Thanks, HiroP. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7248 e03df62e-2008-0410-955e-edbf42e46eb7
* Somehow, the code which does the "assumption" that no prefix means 'that' ↵Gravatar brain2007-05-241-1/+5
| | | | | | | | | server's name, got removed or broken. I've put it back, this would explain the commands with empty prefixes being echoed back during that java stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7131 e03df62e-2008-0410-955e-edbf42e46eb7
* This says ten minutes drift and should say five, fixedGravatar brain2007-05-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7106 e03df62e-2008-0410-955e-edbf42e46eb7
* Move inspircd.h to topGravatar brain2007-05-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7099 e03df62e-2008-0410-955e-edbf42e46eb7
* Reverted broken patch.. This may break, but it's unlikely :pGravatar frostycoolslug2007-05-211-5/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7090 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-11/+5
| | | | | | step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed a fairly low-risk crash in m_spanningtreeGravatar special2007-05-181-2/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7042 e03df62e-2008-0410-955e-edbf42e46eb7
* Change the way i/o lines are formatted in debug log to make them more ↵Gravatar brain2007-05-171-2/+2
| | | | | | | | | | intuitive. Now includes a C or S to say if its client or server, plus the fd: Thu May 17 17:56:16 2007: C[15] -> :Brain MODE #test Thu May 17 17:56:17 2007: C[15] -> :Brain WHO #test git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7039 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a notice on connection close stating server link uptime, and fix a bug ↵Gravatar brain2007-05-161-0/+5
| | | | | | | | | in m_opermodes which meant that its modes werent being replicated across servers (it was sending a totally malformed MODE command with the nick in twice, and has been doing this presumably since early 1.1's) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7034 e03df62e-2008-0410-955e-edbf42e46eb7
* quietbursts tweak for hiropGravatar brain2007-05-141-8/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7023 e03df62e-2008-0410-955e-edbf42e46eb7
* remove EB metadata madness and make services people happy.Gravatar brain2007-05-101-0/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6956 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix operquit notices being chopped to first word of quit message, spotted by ↵Gravatar brain2007-05-091-1/+2
| | | | | | owine :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6931 e03df62e-2008-0410-955e-edbf42e46eb7
* gcc fails it at exporting symbols properly :/Gravatar brain2007-05-061-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6894 e03df62e-2008-0410-955e-edbf42e46eb7
* Make debug warning for broken servers once per servername onlyGravatar brain2007-05-051-5/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6884 e03df62e-2008-0410-955e-edbf42e46eb7
* Add MODE nag to debug snomask +dGravatar brain2007-05-041-0/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6878 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply visibility state to whois, next stop, /whoGravatar brain2007-05-041-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6869 e03df62e-2008-0410-955e-edbf42e46eb7
* Make error reporting work properly, it seemed to loose errors.Gravatar brain2007-04-261-23/+28
| | | | | | | | | First change: Add a culling list of inspsockets waiting to be closed, so the close() is less likely to be called before the buffer is entirely empty. This seems to work well on my LAN. Second change: Add a SendError() method, rather than WriteLine("ERROR : ..."). This can be used to effect by also echoing out "Sent ERROR to %s: ..." onto the +l snomask meaning at least one end will always see the error even if the ERROR command is lost due to latency or design of the transport (e.g. ssl which may be writing during a read event etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6844 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug #259 proper by doing what I should have done back in r6618 when I ↵Gravatar peavey2007-04-201-1/+1
| | | | | | first fixed logout issue. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6817 e03df62e-2008-0410-955e-edbf42e46eb7
* Check some userrec values in remote whois, so that it wont crash if a user ↵Gravatar brain2007-04-191-6/+8
| | | | | | | | | has quit before the IDLE command arrives. Fixes bug #260 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6814 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug that took ages to track down and was very subtle.Gravatar brain2007-04-151-0/+17
| | | | | | | | | | | | | | | During authentication the flow of commands is as follows: > SERVER aaaaaa < SERVER bbbbbb > BURST < BURST ... what can happen is that between the two server commands we can introduce SERVER aaaa to server bbbbb again, from a different socket. As server aaaaa doesnt exist yet and we're waiting for it to say yes or no to our own SERVER command over at bbbbbb, it cant be found with FindServer. Therefore we need a second list of servers that arent yet authenticated, but are waiting TO authenticate, by the pointer their socket has and the name they want to become after auth. If two servers introduce themselves at the same time, triggering what was the race condition, both servers are disconnected with "ERROR :Negotiation collision" and must try again until only one succeeds. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6802 e03df62e-2008-0410-955e-edbf42e46eb7
* RevertGravatar brain2007-04-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6781 e03df62e-2008-0410-955e-edbf42e46eb7
* Test tweak to make it sync fasterGravatar brain2007-04-091-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7
* Handle non-hmac servers smarter without having to globally turn off hmacGravatar brain2007-04-091-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6777 e03df62e-2008-0410-955e-edbf42e46eb7
* Add config <options:disablehmac> to support disabling of HMAC, and tidy up ↵Gravatar brain2007-04-091-2/+20
| | | | | | to detect if the other side hasnt got it enabled and we did, or if we enabled it and dont have sha256 (that would be an oops) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6776 e03df62e-2008-0410-955e-edbf42e46eb7
* I think we're almost there nowGravatar brain2007-04-091-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6774 e03df62e-2008-0410-955e-edbf42e46eb7
* More fucking aroundGravatar brain2007-04-091-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6773 e03df62e-2008-0410-955e-edbf42e46eb7
* This is likely fucked up beyond all recognition. Today is fubar day :pGravatar brain2007-04-091-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6772 e03df62e-2008-0410-955e-edbf42e46eb7
* Check against the HMAC challenge now: *UNTESTED*Gravatar brain2007-04-091-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6770 e03df62e-2008-0410-955e-edbf42e46eb7
* Add basic HMAC suggested by jilles to make the auth not suck -- this is ↵Gravatar brain2007-04-091-1/+1
| | | | | | probably buggy, and the other side doesnt auth yet. do not use. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6769 e03df62e-2008-0410-955e-edbf42e46eb7
* Test code that pretends to send a hashed value if its got a challenge - ↵Gravatar brain2007-04-091-1/+1
| | | | | | don't use this, it wont connect git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6768 e03df62e-2008-0410-955e-edbf42e46eb7
* Add licensing headers to files which are missing them and make sure they are ↵Gravatar brain2007-04-071-0/+13
| | | | | | up to date in others (e.g. point at the developer page on the wiki not list names) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6759 e03df62e-2008-0410-955e-edbf42e46eb7
* We had to roll our own time function because some craqsmoker thought having ↵Gravatar brain2007-04-061-1/+1
| | | | | | | | | a carriage return on the end of ctime and asctime was a great idea, and the only other solution is to fanny around with strftime. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6749 e03df62e-2008-0410-955e-edbf42e46eb7
* Show expiry times of glines, klines, qlines and elines as the time theyre ↵Gravatar brain2007-04-061-1/+2
| | | | | | | | | due to expire rather than number of secs (thanks bricker) Oh, and i hate C time formatting functions. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6748 e03df62e-2008-0410-955e-edbf42e46eb7
* Add support for <link:hidden> fixes feature request documented in bug #247 ↵Gravatar brain2007-04-051-3/+5
| | | | | | reported by owine git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6738 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra /map info (connection uptime, and lag time) to /MAP for opers. ↵Gravatar brain2007-04-051-0/+1
| | | | | | Adds feature requested by bug #246 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6737 e03df62e-2008-0410-955e-edbf42e46eb7
* This needs some general QA-ing. Add support to new parser (introduced in ↵Gravatar brain2007-04-021-1/+1
| | | | | | 1.1) for empty final params (just the colon) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6731 e03df62e-2008-0410-955e-edbf42e46eb7
* Update a notice on server already existing to be more clearGravatar w00t2007-03-201-1/+1
| | | | | | - Update ModDesc for m_hidechans git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6693 e03df62e-2008-0410-955e-edbf42e46eb7
* set the TS of a channel in JoinUser, not after the entire FJOIN, this is ↵Gravatar brain2007-03-181-1/+1
| | | | | | safer and may fix the odd desync here and there git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6690 e03df62e-2008-0410-955e-edbf42e46eb7
* Abort link at +/- 300secs, warn at +/- 30 secsGravatar brain2007-03-171-3/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6689 e03df62e-2008-0410-955e-edbf42e46eb7
* Remote /MODULESGravatar brain2007-03-161-0/+59
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6688 e03df62e-2008-0410-955e-edbf42e46eb7
* Different timesync, dont use yetGravatar brain2007-03-161-32/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6683 e03df62e-2008-0410-955e-edbf42e46eb7
* Add third parameter to OnUserQuit (quit reason for opers only) - bump api ↵Gravatar brain2007-03-151-0/+19
| | | | | | | | | | | version Add SetOperQuit and GetOperQuit methods to userrec Add OPERQUIT command to protocol - bump protocol version All this is to properly allow hidebans etc to work properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6675 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed a crash with a malformed server-to-server NICK command, thanks dmbGravatar special2007-03-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6656 e03df62e-2008-0410-955e-edbf42e46eb7
* This now makes RemoveStatus remove *everything* as pointed out by jilles. ↵Gravatar brain2007-03-101-36/+5
| | | | | | This will prevent simplemodes desyncs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6651 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a TODO commentGravatar brain2007-03-101-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6650 e03df62e-2008-0410-955e-edbf42e46eb7