summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Forgot part of the fix for bug #404Gravatar special2007-09-271-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8087 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #421Gravatar brain2007-09-251-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8081 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed an issue that could cause empty parameters in module commands to not ↵Gravatar special2007-09-021-2/+1
| | | | | | be sent to other servers properly git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8013 e03df62e-2008-0410-955e-edbf42e46eb7
* Backport: Add SVSPART at request of the Anope team - You can tell if the ↵Gravatar brain2007-08-281-0/+29
| | | | | | | | | server has SVSPART by the presence of SVSPART=1 in the CAPAB. No, we will NOT be enforcing this network-wide, its a server-origin command so it wont cause disconnects if it doesnt exist somewhere. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7983 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge in fix for invalid channels in SVSJOIN by w00tGravatar brain2007-08-271-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7853 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #398, when someone does /rconnect and the connection fails, more ↵Gravatar brain2007-08-261-4/+4
| | | | | | stuff is now globally broadcast using SNONOTICE and PUSH git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7827 e03df62e-2008-0410-955e-edbf42e46eb7
* backport of fix for bug #382. When colliding a nick, we didnt have : before ↵Gravatar brain2007-08-201-2/+2
| | | | | | | | | | | the kill reasons for the serverkill. Because of a recentish refactor of server to server kills, when killing the user, the kill handler checks for params != 2 and returns if this is true Because 'nick collision' is two words, long, it ignores the KILL and risks a desync (basically a race condition). Couldnt duplicate myself, but this *SHOULD* fix. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7773 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove a whole load of #ifdef as we can now use gettimeofday.Gravatar brain2007-08-151-4/+0
| | | | | | | If we add a wrapper for getrusage, then we can remove a ton more git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7726 e03df62e-2008-0410-955e-edbf42e46eb7
* bp 7717: Fix new millisec /map to compile on windows, by ifndef gettimeofday ↵Gravatar peavey2007-08-131-0/+4
| | | | | | out reverting back to seconds for latency. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7718 e03df62e-2008-0410-955e-edbf42e46eb7
* Feature request from djGrr, allow changing of server to server ping ↵Gravatar brain2007-08-071-1/+1
| | | | | | frequency: Backport to 1.1 for deployment on certain nets git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7687 e03df62e-2008-0410-955e-edbf42e46eb7
* Backport as fix, as old way was somewhat useless:Gravatar brain2007-08-051-1/+4
| | | | | | | Change latency figures in /map to milliseconds, much more useful for lag measurement than seconds git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7668 e03df62e-2008-0410-955e-edbf42e46eb7
* Manual backport of r7637 - svnmerge is still being a prickGravatar w00t2007-08-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7638 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge r7528-7529 from trunkGravatar peavey2007-07-231-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7530 e03df62e-2008-0410-955e-edbf42e46eb7
* Stability fixes, some DELETEs here that dont belong any more.Gravatar brain2007-07-171-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7470 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+1554
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵Gravatar peavey2007-07-161-1554/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* Clarifying commentGravatar brain2007-07-101-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7433 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for atheme support (and others) which makes sure CAPAB is always sent ↵Gravatar brain2007-06-241-0/+6
| | | | | | before BURST git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7404 e03df62e-2008-0410-955e-edbf42e46eb7
* 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