summaryrefslogtreecommitdiff
path: root/src/modules
Commit message (Collapse)AuthorAgeFilesLines
* update some comments.Gravatar peavey2007-04-221-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6830 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix crash if trying to remove pattern that does not exist.Gravatar peavey2007-04-221-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6829 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix typoGravatar brain2007-04-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6826 e03df62e-2008-0410-955e-edbf42e46eb7
* cleanup space indentingGravatar peavey2007-04-222-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6825 e03df62e-2008-0410-955e-edbf42e46eb7
* Send numeric when item doesnt exist on removeGravatar brain2007-04-222-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6824 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix memory consumption of m_slence, users silence lists arent deleted till ↵Gravatar brain2007-04-222-27/+19
| | | | | | they quit, they should be deleted when they empty their list to save ram git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6823 e03df62e-2008-0410-955e-edbf42e46eb7
* Add *** to +s SNOTICEsGravatar peavey2007-04-211-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6820 e03df62e-2008-0410-955e-edbf42e46eb7
* Add *** to +s SNOTICEsGravatar brain2007-04-213-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6819 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
* Revert this back to previous.Gravatar peavey2007-04-201-4/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6816 e03df62e-2008-0410-955e-edbf42e46eb7
* Do not add empty strings to outgoing lines. *needs testing, may break stuff*Gravatar peavey2007-04-191-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6815 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
* Add another trim() to outgoing metadata accountname. *needs test*Gravatar peavey2007-04-181-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6812 e03df62e-2008-0410-955e-edbf42e46eb7
* oops, overlooked a reference.Gravatar peavey2007-04-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6811 e03df62e-2008-0410-955e-edbf42e46eb7
* Add fix for bug #259 now that Brain is RAM impaired :p *QA please test*Gravatar peavey2007-04-181-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6810 e03df62e-2008-0410-955e-edbf42e46eb7
* Added options:deprotectothers, this is like options:deprotectself, but if ↵Gravatar brain2007-04-161-11/+28
| | | | | | | | | set allows one user with +a to remove another users +a, and a user with +q to remove another users +q. Default behaviour is to turn this option off like previous versions of insp defaulted to. Thanks to Bricker for the idea and w00t not getting pissy at me :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6806 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug that took ages to track down and was very subtle.Gravatar brain2007-04-154-0/+62
| | | | | | | | | | | | | | | 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
* Working in m_filter_pcre.Gravatar brain2007-04-141-4/+8
| | | | | | | | Thanks DarkPrince (PingBad) for the idea we messed with - when a match is successful move that match to the head of the list (O(1) operation) The original suggestion was to sort, this would be far too expensive git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6794 e03df62e-2008-0410-955e-edbf42e46eb7
* Add move-match-to-head-of-queue stuff to pcre filterGravatar brain2007-04-141-6/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6793 e03df62e-2008-0410-955e-edbf42e46eb7
* Working for m_filter, needs implementing in m_filter_pcreGravatar brain2007-04-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6792 e03df62e-2008-0410-955e-edbf42e46eb7
* Some tweaks suggested by pingbad, dont use yet :pGravatar brain2007-04-141-1/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6791 e03df62e-2008-0410-955e-edbf42e46eb7
* Dont use send_mode_explicit protocol call, use send_mode, which doesnt try ↵Gravatar brain2007-04-121-3/+3
| | | | | | and force the mode through via non-FMODE git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6788 e03df62e-2008-0410-955e-edbf42e46eb7
* The hmac stuff was slightly wrong, calculating the 2nd partGravatar brain2007-04-091-1/+2
| | | | | | | left a concatenation outside the bracket git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6787 e03df62e-2008-0410-955e-edbf42e46eb7
* D'oh, this is what causes it to randomly not allow the HMAC, when theres an ↵Gravatar brain2007-04-091-1/+4
| | | | | | = in the string, it borks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6786 e03df62e-2008-0410-955e-edbf42e46eb7
* And spell it right.Gravatar brain2007-04-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6785 e03df62e-2008-0410-955e-edbf42e46eb7
* Minor change, easy to roll back if it fucks upGravatar brain2007-04-091-1/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6784 e03df62e-2008-0410-955e-edbf42e46eb7
* WhoopsieGravatar brain2007-04-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6783 e03df62e-2008-0410-955e-edbf42e46eb7
* Wait longer before sending data on the connect than on the acceptGravatar brain2007-04-093-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6782 e03df62e-2008-0410-955e-edbf42e46eb7
* RevertGravatar brain2007-04-092-6/+4
| | | | 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-092-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7
* Different way of generating random stringGravatar brain2007-04-091-1/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6779 e03df62e-2008-0410-955e-edbf42e46eb7
* Give information in snomask +l to what type of auth was usedGravatar brain2007-04-091-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6778 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-095-9/+59
| | | | | | 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
* Remove debug: This now works!Gravatar brain2007-04-091-8/+7
| | | | | | | 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
* I think we're almost there nowGravatar brain2007-04-093-5/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6774 e03df62e-2008-0410-955e-edbf42e46eb7
* More fucking aroundGravatar brain2007-04-092-6/+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-093-4/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6772 e03df62e-2008-0410-955e-edbf42e46eb7
* Debug, and we seem to be sending capab twiceGravatar brain2007-04-091-10/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6771 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-094-8/+29
| | | | | | 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-094-7/+18
| | | | | | don't use this, it wont connect git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6768 e03df62e-2008-0410-955e-edbf42e46eb7
* Added ability to send and receive a challenge, dont do anything with it yetGravatar brain2007-04-093-9/+38
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6767 e03df62e-2008-0410-955e-edbf42e46eb7
* Add methods needed for storing challenge stringGravatar brain2007-04-092-0/+41
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6766 e03df62e-2008-0410-955e-edbf42e46eb7
* Make the max '3 dots' and not 2Gravatar brain2007-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6765 e03df62e-2008-0410-955e-edbf42e46eb7
* It might be slightly slower, but memset the array as we're using it as a ↵Gravatar brain2007-04-081-0/+3
| | | | | | matrix not a simple char*. This will mean that the possibility of past data being left behind in the buffer wont happen git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6762 e03df62e-2008-0410-955e-edbf42e46eb7
* Should change the header tooGravatar brain2007-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6761 e03df62e-2008-0410-955e-edbf42e46eb7
* Make the lines wide enough to hold the new dataGravatar brain2007-04-081-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6760 e03df62e-2008-0410-955e-edbf42e46eb7
* Add licensing headers to files which are missing them and make sure they are ↵Gravatar brain2007-04-0719-0/+247
| | | | | | 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