summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket1.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* Correct the silentbursts logic•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6908 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-071-4/+2
* Slightly tidier capab checks•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6906 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-071-22/+22
* Needs a little testing: Tidyup of some code, namely when validating the lengt...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6905 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-071-55/+21
* Fix channel TS not being set correctly on creation of new channel•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6904 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-071-4/+1
* Developers, please review ForceJoin starting at line 730 of this file. It nee...•••Now uses modestacker rather than trying to do this itself with lots of char* craq. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6903 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-071-161/+46
* A bit more debug in here•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6902 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-071-18/+8
* Add bugnotice when an fmode is sent with a TS < ours. This should in theory n...•••FJOIN, and FJOIN lowers the TS to be = ours if its greater. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6901 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-071-0/+3
* FTOPIC from another server now (correctly) shows local server name to obscure...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6900 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-071-1/+1
* Add options:quietbursts, fixes bug #269, also adds support for quits in a cul...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6883 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-041-1/+5
* Much more detailed logging of lowlevel socket errors to the +l snomask•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6856 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-011-17/+28
* Fix crashbug in latest svn introduced by inspsocket cull list, which can caus...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6855 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-011-0/+8
* Make error reporting work properly, it seemed to loose errors.•••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 Gravatar brain2007-04-261-3/+9
* dhost and host are both char[65], so let stringcopy take up to 64 chars here.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6833 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-04-251-2/+2
* Fix for bug that took ages to track down and was very subtle.•••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 Gravatar brain2007-04-151-0/+2
* The hmac stuff was slightly wrong, calculating the 2nd part•••left a concatenation outside the bracket git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6787 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-1/+2
* D'oh, this is what causes it to randomly not allow the HMAC, when theres an =...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6786 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-1/+4
* And spell it right.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6785 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-1/+1
* Minor change, easy to roll back if it fucks up•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6784 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-1/+6
* Whoopsie•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6783 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-1/+1
* Wait longer before sending data on the connect than on the accept•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6782 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-2/+2
* Revert•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6781 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-5/+3
* Test tweak to make it sync faster•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-2/+5
* Different way of generating random string•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6779 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-1/+17
* Give information in snomask +l to what type of auth was used•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6778 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-3/+2
* Add config <options:disablehmac> to support disabling of HMAC, and tidy up to...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6776 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-7/+26
* Remove debug: This now works!•••WARNING: I have no idea how this will react to being linked to a past version without HMAC-challenge-response.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6775 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-8/+7
* I think we're almost there now•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6774 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-3/+2
* This is likely fucked up beyond all recognition. Today is fubar day :p•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6772 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-2/+6
* Debug, and we seem to be sending capab twice•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6771 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-10/+11
* Add basic HMAC suggested by jilles to make the auth not suck -- this is proba...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6769 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-4/+25
* Test code that pretends to send a hashed value if its got a challenge - don't...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6768 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-4/+10
* Added ability to send and receive a challenge, dont do anything with it yet•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6767 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-4/+22
* Add methods needed for storing challenge string•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6766 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-091-0/+23
* Add licensing headers to files which are missing them and make sure they are ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6759 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-071-0/+13
* Fix for bug #199 (Feature request) submitted by owine. Ended up adding an ext...•••It turned into a biggie :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6742 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-051-1/+3
* This needs some general QA-ing. Add support to new parser (introduced in 1.1)...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6731 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-021-5/+5
* Check validity (length) of all NICK parameters to make sure we're not introdu...•••Normally, NICK parameters longer than allowed are weeded out by CAPAB but sending CAPAB is optional. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6705 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-241-11/+44
* set the TS of a channel in JoinUser, not after the entire FJOIN, this is safe...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6690 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-181-14/+4
* Whoops, fix a silly bug i just introduced :p•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6649 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-101-1/+2
* Move FJOIN propogation above the FMODEs generated by winning an FJOIN•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6648 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-101-5/+8
* Fix typo•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6645 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-101-10/+9
* HIGHLY EXPERIMENTAL: This needs heavy testing -- new FMODE behaviour:•••(1) IF THEIRTS <= OURTS, ACCEPT MODE AND PASS ON (2) If THEIRTS > OURTS, drop the mode and DONT pass on. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6644 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-101-255/+4
* Take away a uline specific check in fmode, which might explain why desyncs be...•••QA please test this with at least 2 insps and services and server syncs/splits, check for channel mode desyncs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6638 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-081-8/+1
* Ensure that simplemodes are sent first (jilles requested this)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6611 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-251-2/+3
* Bans are bursted using a large string buffer to save on write() calls, so the...•••he same though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6610 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-251-3/+11
* Allow for nick!user@host in TOPIC information.•••Note that this adds another <options> tag value, 'hostintopic'. (defaults to yes) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6572 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-111-1/+1
* Support port binding here•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6535 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-071-2/+2
* Potential desync on "nick collision at same time as fjoin" fix•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6445 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-271-7/+16
* Fix dependencies•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6398 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-191-0/+2
* Split this up even more, much smaller files that are easier for gcc to digest•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6395 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-191-0/+1451