5678 Commits

Author SHA1 Message Date
brain
eedb276bcb Test tweak to make it sync faster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 17:59:00 +00:00
brain
ca7ac1c188 Different way of generating random string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6779 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 17:48:52 +00:00
brain
54f4abc93d 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
2007-04-09 17:17:17 +00:00
brain
3a89c8e89e Handle non-hmac servers smarter without having to globally turn off hmac
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6777 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 17:11:33 +00:00
brain
7f00015727 Add config <options:disablehmac> to support disabling of HMAC, and tidy up 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
2007-04-09 16:42:09 +00:00
brain
96798509ac 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
2007-04-09 16:21:38 +00:00
brain
90566d23b1 I think we're almost there now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6774 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 16:15:13 +00:00
brain
39361603e3 More fucking around
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6773 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 16:04:13 +00:00
brain
a22c47d19a 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
2007-04-09 15:55:06 +00:00
brain
8eec77bdde 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
2007-04-09 15:34:14 +00:00
brain
4e6b5f4b56 Check against the HMAC challenge now: *UNTESTED*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6770 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 15:24:43 +00:00
brain
fdecf7fb70 Add basic HMAC suggested by jilles to make the auth not suck -- this is 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
2007-04-09 15:18:13 +00:00
brain
663a113180 Test code that pretends to send a hashed value if its got a challenge - don't use this, it wont connect
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6768 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 14:46:39 +00:00
brain
be36d92f3d 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
2007-04-09 14:07:18 +00:00
brain
4af9d41436 Add methods needed for storing challenge string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6766 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 13:51:33 +00:00
brain
54b211e175 Make the max '3 dots' and not 2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6765 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 22:36:32 +00:00
brain
b4ebbfad6f Fix to reinsert sockets into the list as read event
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6764 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 19:48:57 +00:00
brain
772dc6c474 Add support for solaris 10 IO Completion Ports, contributed by nenolod
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6763 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 18:08:20 +00:00
brain
feebd9bbc3 It might be slightly slower, but memset the array as we're using it as a 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
2007-04-08 17:10:48 +00:00
brain
6357a5887e Should change the header too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6761 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 17:04:50 +00:00
brain
d05aafc228 Make the lines wide enough to hold the new data
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6760 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 17:03:45 +00:00
brain
a772b4dbf5 Add licensing headers to files which are missing them and make sure they are 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
2007-04-07 21:01:01 +00:00
brain
0a6adff4e0 Set the signals to 'quick exit' before the fork, not straight after, because theres a very slight chance of minor race condition if the child process sends kill() before we signal() otherwise.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6758 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-07 16:12:12 +00:00
brain
45d76881d8 Gorgonzola!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6756 e03df62e-2008-0410-955e-edbf42e46eb7
v1.1.5
2007-04-06 21:19:58 +00:00
brain
ad40b6420e More information in error when a module cant be loaded
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6755 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:44:46 +00:00
brain
ea888f7b6a Change wording of message
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6754 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:22:06 +00:00
brain
86c8e5fb13 Fix params passed on /restart
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6753 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:21:14 +00:00
brain
f5d4a05c9d Increase sleep delay to 20, to provide reading time for the message
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6752 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:20:05 +00:00
brain
4abece241c Missing newline
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6751 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:18:36 +00:00
brain
0811c418ab Add a facility to allow starting as root, bin/inspircd -runasroot
if you actually specify this parameter, the daemon displays a huge warning in caps, then hangs for 5 secs to give you chance to ctrl+c if you made a mistake.
If you dont ctrl+c it, it then starts normally.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6750 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:17:59 +00:00
brain
f9110f02e7 We had to roll our own time function because some craqsmoker thought having 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
2007-04-06 19:18:08 +00:00
brain
578f32db3c Show expiry times of glines, klines, qlines and elines as the time theyre 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
2007-04-06 19:03:11 +00:00
brain
296661c5c5 Check for people with lack of clue putting "!" in gline/kline/zline masks :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6747 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 18:43:58 +00:00
peavey
20907e9c0d Add <hostname:charmap> to example.conf
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6746 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 18:43:23 +00:00
brain
3d1ad0939f Fix bug #224 by refreshing the security ip cache every hour. The easier solution of course is not use crappy dynamic ips :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6745 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 14:03:06 +00:00
brain
39f2fa9ccf Fix the previous commit better - always copy the null terminator (oops)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6744 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 13:07:55 +00:00
brain
f3e184c540 Fix issue spotted by devious - if a value is defined and a later rehash clears the value to empty, the value is not unset properly because it tries to memcpy zero bytes to the value -
this means memcpy just returns immediately. Now if the string value is 0 in length we copy one byte instead (which just copies the null terminator)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6743 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 13:04:49 +00:00
brain
821a5bca88 Fix for bug #199 (Feature request) submitted by owine. Ended up adding an extra parameter to <uline> for this.
It turned into a biggie :P


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6742 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-05 23:53:01 +00:00
brain
2248866b4b Fix for bug #216, m_cloaking now tries to cloak a larger amount of the hostname for resolving hosts to fix the issue reported by satmd in bug #216
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6741 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-05 23:13:54 +00:00
brain
75150d58c2 Add 'silent' option to example conf
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6740 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-05 22:32:25 +00:00
brain
6c22aee160 Add filter type 'silent', as requested in bug #235 reported by Casey.
filter type silent for m_filter and m_filter_pcre does not notify opers, and just blocks the text. It does however tell the user their text was blocked and still log.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6739 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-05 22:31:28 +00:00
brain
37c77c74a0 Add support for <link:hidden> fixes feature request documented in bug #247 reported by owine
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6738 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-05 22:17:23 +00:00
brain
aec772bdc9 Add extra /map info (connection uptime, and lag time) to /MAP for opers. Adds feature requested by bug #246
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6737 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-05 21:57:48 +00:00
brain
1997b70641 Add feature outlined in bug #192, give a notice showing cipher on connect to users. Its not possible (without something really spammy and ugly) to show it to opers, and its no use showing it to opers
anyway, this would just be a silly vanity feature :p (admins know its working - people are connecting on the ssl port!)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6736 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-05 21:03:35 +00:00
brain
6ed948b23c Before i was rudely interrupted by a FUCKING *RAM FAILURE*, i was going to commit this patch which fixes the error message given out when a module cant be loaded. Thanks darix for spotting it first. :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6735 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-04 23:21:47 +00:00
brain
980e2f294c If the user has a nick, use it in the numeric
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6734 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-02 22:25:59 +00:00
brain
80b7db360d "NICK :" did nothing and said nothing. It now says erroneous nick and uses the correct numeric.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6733 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-02 22:25:19 +00:00
brain
ffdd357e07 A quick glance at ircu indicates that when an empty gecos is given in USER, it is replaced by 'No info', rather than our way of saying 'not enough parameters', so we'll do this as it seems to make
sense. The RFC is unclear here.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6732 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-02 22:13:20 +00:00
brain
5870145ac2 This needs some general QA-ing. Add support to new parser (introduced in 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
2007-04-02 22:11:14 +00:00
special
ef960ee420 Fixed a DNS timeout race condition that could result in a NOTICE AUTH message being sent after connecting (thanks NBKWH5I)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6730 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-02 04:46:01 +00:00