]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
17 years agoFix for "hanging" when controlling terminal is not a tty (nofork check and isatty...
brain [Fri, 20 Apr 2007 16:37:37 +0000 (16:37 +0000)]
Fix for "hanging" when controlling terminal is not a tty (nofork check and isatty checks lumped together by mistake)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6818 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix bug #259 proper by doing what I should have done back in r6618 when I first fixed...
peavey [Fri, 20 Apr 2007 00:28:28 +0000 (00:28 +0000)]
Fix bug #259 proper by doing what I should have done back in r6618 when I first fixed logout issue.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6817 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRevert this back to previous.
peavey [Fri, 20 Apr 2007 00:27:21 +0000 (00:27 +0000)]
Revert this back to previous.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6816 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDo not add empty strings to outgoing lines. *needs testing, may break stuff*
peavey [Thu, 19 Apr 2007 23:48:12 +0000 (23:48 +0000)]
Do not add empty strings to outgoing lines. *needs testing, may break stuff*

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6815 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoCheck some userrec values in remote whois, so that it wont crash if a user has quit...
brain [Thu, 19 Apr 2007 20:06:01 +0000 (20:06 +0000)]
Check some userrec values in remote whois, so that it wont crash if a user 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

17 years agoFix for bug #261 - Needs QA'ing.
brain [Thu, 19 Apr 2007 18:51:28 +0000 (18:51 +0000)]
Fix for bug #261 - Needs QA'ing.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6813 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd another trim() to outgoing metadata accountname. *needs test*
peavey [Wed, 18 Apr 2007 21:28:40 +0000 (21:28 +0000)]
Add another trim() to outgoing metadata accountname. *needs test*

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6812 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agooops, overlooked a reference.
peavey [Wed, 18 Apr 2007 21:09:14 +0000 (21:09 +0000)]
oops, overlooked a reference.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6811 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd fix for bug #259 now that Brain is RAM impaired :p *QA please test*
peavey [Wed, 18 Apr 2007 20:59:21 +0000 (20:59 +0000)]
Add fix for bug #259 now that Brain is RAM impaired :p *QA please test*

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6810 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd trim() to hashcomp to trail leading and traling spaces from std::strings
peavey [Wed, 18 Apr 2007 20:57:25 +0000 (20:57 +0000)]
Add trim() to hashcomp to trail leading and traling spaces from std::strings

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6809 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWe dont ever maintain this, lets whack it
brain [Mon, 16 Apr 2007 20:25:01 +0000 (20:25 +0000)]
We dont ever maintain this, lets whack it

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6808 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDocument options:deprotectothers
brain [Mon, 16 Apr 2007 20:20:59 +0000 (20:20 +0000)]
Document options:deprotectothers

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6807 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdded options:deprotectothers, this is like options:deprotectself, but if set allows...
brain [Mon, 16 Apr 2007 20:18:08 +0000 (20:18 +0000)]
Added options:deprotectothers, this is like options:deprotectself, but if 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

17 years agoNow this looks like it was supposed to.
brain [Mon, 16 Apr 2007 16:33:01 +0000 (16:33 +0000)]
Now this looks like it was supposed to.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6805 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix the restart stuff that bricker noticed while testing an feature request
brain [Mon, 16 Apr 2007 16:11:00 +0000 (16:11 +0000)]
Fix the restart stuff that bricker noticed while testing an feature request

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6804 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDocument <connect:port>
peavey [Mon, 16 Apr 2007 03:10:31 +0000 (03:10 +0000)]
Document <connect:port>

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6803 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix for bug that took ages to track down and was very subtle.
brain [Sun, 15 Apr 2007 22:18:01 +0000 (22:18 +0000)]
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

17 years agoWhoooooooooooooooooooops. Forgot to initialize a varaible, so wether insp starts...
brain [Sun, 15 Apr 2007 21:05:50 +0000 (21:05 +0000)]
Whoooooooooooooooooooops. Forgot to initialize a varaible, so wether insp starts up or not is random :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6801 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd --version parameter to the binary bin/inspircd, i remember someone requesting...
brain [Sun, 15 Apr 2007 12:15:39 +0000 (12:15 +0000)]
Add --version parameter to the binary bin/inspircd, i remember someone requesting this

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6800 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd tweaks to support feature request in bug #256, now awaiting QA test
brain [Sun, 15 Apr 2007 11:47:54 +0000 (11:47 +0000)]
Add tweaks to support feature request in bug #256, now awaiting QA test

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6799 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFeature request outlined in bug #257, allow connect/allow lines by port
brain [Sun, 15 Apr 2007 11:42:42 +0000 (11:42 +0000)]
Feature request outlined in bug #257, allow connect/allow lines by port
Needs QA test

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6798 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoView the diffs for a giggle.
brain [Sun, 15 Apr 2007 00:55:11 +0000 (00:55 +0000)]
View the diffs for a giggle.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6797 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoReport the correct MAXMODES value
brain [Sun, 15 Apr 2007 00:27:44 +0000 (00:27 +0000)]
Report the correct MAXMODES value

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6796 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDon't send SYNTAX to clients which havent registered fully yet. Nothing says we cant...
brain [Sat, 14 Apr 2007 23:39:41 +0000 (23:39 +0000)]
Don't send SYNTAX to clients which havent registered fully yet. Nothing says we cant but its a bit 'odd' and may break something

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6795 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWorking in m_filter_pcre.
brain [Sat, 14 Apr 2007 12:05:27 +0000 (12:05 +0000)]
Working in m_filter_pcre.
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

17 years agoAdd move-match-to-head-of-queue stuff to pcre filter
brain [Sat, 14 Apr 2007 11:54:20 +0000 (11:54 +0000)]
Add move-match-to-head-of-queue stuff to pcre filter

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6793 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWorking for m_filter, needs implementing in m_filter_pcre
brain [Sat, 14 Apr 2007 11:43:00 +0000 (11:43 +0000)]
Working for m_filter, needs implementing in m_filter_pcre

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6792 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoSome tweaks suggested by pingbad, dont use yet :p
brain [Sat, 14 Apr 2007 11:33:59 +0000 (11:33 +0000)]
Some tweaks suggested by pingbad, dont use yet :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6791 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd a pair of curly braces because gcc will whine otherwise about declaration of...
brain [Sat, 14 Apr 2007 10:57:08 +0000 (10:57 +0000)]
Add a pair of curly braces because gcc will whine otherwise about declaration of a variable within a case statement

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6790 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFind out from the commit notices that we're still using ctime() here and should be...
brain [Sat, 14 Apr 2007 10:47:23 +0000 (10:47 +0000)]
Find out from the commit notices that we're still using ctime() here and should be using InspIRCd::TimeStr (ick)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6789 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDont use send_mode_explicit protocol call, use send_mode, which doesnt try and force...
brain [Thu, 12 Apr 2007 19:28:57 +0000 (19:28 +0000)]
Dont use send_mode_explicit protocol call, use send_mode, which doesnt try and force the mode through via non-FMODE

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6788 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoThe hmac stuff was slightly wrong, calculating the 2nd part
brain [Mon, 9 Apr 2007 20:24:04 +0000 (20:24 +0000)]
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

17 years agoD'oh, this is what causes it to randomly not allow the HMAC, when theres an = in...
brain [Mon, 9 Apr 2007 18:43:11 +0000 (18:43 +0000)]
D'oh, this is what causes it to randomly not allow the HMAC, when theres an = in the string, it borks!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6786 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAnd spell it right.
brain [Mon, 9 Apr 2007 18:38:23 +0000 (18:38 +0000)]
And spell it right.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6785 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMinor change, easy to roll back if it fucks up
brain [Mon, 9 Apr 2007 18:37:55 +0000 (18:37 +0000)]
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

17 years agoWhoopsie
brain [Mon, 9 Apr 2007 18:15:43 +0000 (18:15 +0000)]
Whoopsie

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6783 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWait longer before sending data on the connect than on the accept
brain [Mon, 9 Apr 2007 18:12:13 +0000 (18:12 +0000)]
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

17 years agoRevert
brain [Mon, 9 Apr 2007 18:06:33 +0000 (18:06 +0000)]
Revert

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6781 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoTest tweak to make it sync faster
brain [Mon, 9 Apr 2007 17:59:00 +0000 (17:59 +0000)]
Test tweak to make it sync faster

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDifferent way of generating random string
brain [Mon, 9 Apr 2007 17:48:52 +0000 (17:48 +0000)]
Different way of generating random string

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6779 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoGive information in snomask +l to what type of auth was used
brain [Mon, 9 Apr 2007 17:17:17 +0000 (17:17 +0000)]
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

17 years agoHandle non-hmac servers smarter without having to globally turn off hmac
brain [Mon, 9 Apr 2007 17:11:33 +0000 (17:11 +0000)]
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

17 years agoAdd config <options:disablehmac> to support disabling of HMAC, and tidy up to detect...
brain [Mon, 9 Apr 2007 16:42:09 +0000 (16:42 +0000)]
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

17 years agoRemove debug: This now works!
brain [Mon, 9 Apr 2007 16:21:38 +0000 (16:21 +0000)]
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

17 years agoI think we're almost there now
brain [Mon, 9 Apr 2007 16:15:13 +0000 (16:15 +0000)]
I think we're almost there now

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6774 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMore fucking around
brain [Mon, 9 Apr 2007 16:04:13 +0000 (16:04 +0000)]
More fucking around

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6773 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoThis is likely fucked up beyond all recognition. Today is fubar day :p
brain [Mon, 9 Apr 2007 15:55:06 +0000 (15:55 +0000)]
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

17 years agoDebug, and we seem to be sending capab twice
brain [Mon, 9 Apr 2007 15:34:14 +0000 (15:34 +0000)]
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

17 years agoCheck against the HMAC challenge now: *UNTESTED*
brain [Mon, 9 Apr 2007 15:24:43 +0000 (15:24 +0000)]
Check against the HMAC challenge now: *UNTESTED*

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6770 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd basic HMAC suggested by jilles to make the auth not suck -- this is probably...
brain [Mon, 9 Apr 2007 15:18:13 +0000 (15:18 +0000)]
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

17 years agoTest code that pretends to send a hashed value if its got a challenge - don't use...
brain [Mon, 9 Apr 2007 14:46:39 +0000 (14:46 +0000)]
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

17 years agoAdded ability to send and receive a challenge, dont do anything with it yet
brain [Mon, 9 Apr 2007 14:07:18 +0000 (14:07 +0000)]
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

17 years agoAdd methods needed for storing challenge string
brain [Mon, 9 Apr 2007 13:51:33 +0000 (13:51 +0000)]
Add methods needed for storing challenge string

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6766 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake the max '3 dots' and not 2
brain [Sun, 8 Apr 2007 22:36:32 +0000 (22:36 +0000)]
Make the max '3 dots' and not 2

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6765 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix to reinsert sockets into the list as read event
brain [Sun, 8 Apr 2007 19:48:57 +0000 (19:48 +0000)]
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

17 years agoAdd support for solaris 10 IO Completion Ports, contributed by nenolod
brain [Sun, 8 Apr 2007 18:08:20 +0000 (18:08 +0000)]
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

17 years agoIt might be slightly slower, but memset the array as we're using it as a matrix not...
brain [Sun, 8 Apr 2007 17:10:48 +0000 (17:10 +0000)]
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

17 years agoShould change the header too
brain [Sun, 8 Apr 2007 17:04:50 +0000 (17:04 +0000)]
Should change the header too

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6761 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake the lines wide enough to hold the new data
brain [Sun, 8 Apr 2007 17:03:45 +0000 (17:03 +0000)]
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

17 years agoAdd licensing headers to files which are missing them and make sure they are up to...
brain [Sat, 7 Apr 2007 21:01:01 +0000 (21:01 +0000)]
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

17 years agoSet the signals to 'quick exit' before the fork, not straight after, because theres...
brain [Sat, 7 Apr 2007 16:12:12 +0000 (16:12 +0000)]
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

17 years agoGorgonzola!
brain [Fri, 6 Apr 2007 21:19:58 +0000 (21:19 +0000)]
Gorgonzola!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6756 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMore information in error when a module cant be loaded
brain [Fri, 6 Apr 2007 20:44:46 +0000 (20:44 +0000)]
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

17 years agoChange wording of message
brain [Fri, 6 Apr 2007 20:22:06 +0000 (20:22 +0000)]
Change wording of message

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6754 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix params passed on /restart
brain [Fri, 6 Apr 2007 20:21:14 +0000 (20:21 +0000)]
Fix params passed on /restart

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6753 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoIncrease sleep delay to 20, to provide reading time for the message
brain [Fri, 6 Apr 2007 20:20:05 +0000 (20:20 +0000)]
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

17 years agoMissing newline
brain [Fri, 6 Apr 2007 20:18:36 +0000 (20:18 +0000)]
Missing newline

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6751 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd a facility to allow starting as root, bin/inspircd -runasroot
brain [Fri, 6 Apr 2007 20:17:59 +0000 (20:17 +0000)]
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

17 years agoWe had to roll our own time function because some craqsmoker thought having a carriag...
brain [Fri, 6 Apr 2007 19:18:08 +0000 (19:18 +0000)]
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

17 years agoShow expiry times of glines, klines, qlines and elines as the time theyre due to...
brain [Fri, 6 Apr 2007 19:03:11 +0000 (19:03 +0000)]
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

17 years agoCheck for people with lack of clue putting "!" in gline/kline/zline masks :p
brain [Fri, 6 Apr 2007 18:43:58 +0000 (18:43 +0000)]
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

17 years agoAdd <hostname:charmap> to example.conf
peavey [Fri, 6 Apr 2007 18:43:23 +0000 (18:43 +0000)]
Add <hostname:charmap> to example.conf

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6746 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix bug #224 by refreshing the security ip cache every hour. The easier solution...
brain [Fri, 6 Apr 2007 14:03:06 +0000 (14:03 +0000)]
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

17 years agoFix the previous commit better - always copy the null terminator (oops)
brain [Fri, 6 Apr 2007 13:07:55 +0000 (13:07 +0000)]
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

17 years agoFix issue spotted by devious - if a value is defined and a later rehash clears the...
brain [Fri, 6 Apr 2007 13:04:49 +0000 (13:04 +0000)]
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

17 years agoFix for bug #199 (Feature request) submitted by owine. Ended up adding an extra param...
brain [Thu, 5 Apr 2007 23:53:01 +0000 (23:53 +0000)]
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

17 years agoFix for bug #216, m_cloaking now tries to cloak a larger amount of the hostname for...
brain [Thu, 5 Apr 2007 23:13:54 +0000 (23:13 +0000)]
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

17 years agoAdd 'silent' option to example conf
brain [Thu, 5 Apr 2007 22:32:25 +0000 (22:32 +0000)]
Add 'silent' option to example conf

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6740 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd filter type 'silent', as requested in bug #235 reported by Casey.
brain [Thu, 5 Apr 2007 22:31:28 +0000 (22:31 +0000)]
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

17 years agoAdd support for <link:hidden> fixes feature request documented in bug #247 reported...
brain [Thu, 5 Apr 2007 22:17:23 +0000 (22:17 +0000)]
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

17 years agoAdd extra /map info (connection uptime, and lag time) to /MAP for opers. Adds feature...
brain [Thu, 5 Apr 2007 21:57:48 +0000 (21:57 +0000)]
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

17 years agoAdd feature outlined in bug #192, give a notice showing cipher on connect to users...
brain [Thu, 5 Apr 2007 21:03:35 +0000 (21:03 +0000)]
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

17 years agoBefore i was rudely interrupted by a FUCKING *RAM FAILURE*, i was going to commit...
brain [Wed, 4 Apr 2007 23:21:47 +0000 (23:21 +0000)]
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

17 years agoIf the user has a nick, use it in the numeric
brain [Mon, 2 Apr 2007 22:25:59 +0000 (22:25 +0000)]
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

17 years ago"NICK :" did nothing and said nothing. It now says erroneous nick and uses the correc...
brain [Mon, 2 Apr 2007 22:25:19 +0000 (22:25 +0000)]
"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

17 years agoA quick glance at ircu indicates that when an empty gecos is given in USER, it is...
brain [Mon, 2 Apr 2007 22:13:20 +0000 (22:13 +0000)]
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

17 years agoThis needs some general QA-ing. Add support to new parser (introduced in 1.1) for...
brain [Mon, 2 Apr 2007 22:11:14 +0000 (22:11 +0000)]
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

17 years agoFixed a DNS timeout race condition that could result in a NOTICE AUTH message being...
special [Mon, 2 Apr 2007 04:46:01 +0000 (04:46 +0000)]
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

17 years agoThe other half of special's LUSERS fix
brain [Mon, 2 Apr 2007 00:35:40 +0000 (00:35 +0000)]
The other half of special's LUSERS fix

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6729 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFixed numeric for one of the lusers messages (was 254, should've been 255)
special [Sun, 1 Apr 2007 22:10:49 +0000 (22:10 +0000)]
Fixed numeric for one of the lusers messages (was 254, should've been 255)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6728 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd feature to this module which allows you to specify that an oper requires ssl...
brain [Sun, 1 Apr 2007 18:53:32 +0000 (18:53 +0000)]
Add feature to this module which allows you to specify that an oper requires ssl to oper up, but doesnt require a fingerprint

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6727 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd -config parameter to bin/inspircd which allows a user to specify the config file...
brain [Sun, 1 Apr 2007 18:34:19 +0000 (18:34 +0000)]
Add -config parameter to bin/inspircd which allows a user to specify the config file on the commandline
Note: This should really be a full pathname, and not a configuration file in the current directory.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6726 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd m_seenicks.so, adds snomasks +nN which show local and remote nick changes (reques...
brain [Sun, 1 Apr 2007 18:00:18 +0000 (18:00 +0000)]
Add m_seenicks.so, adds snomasks +nN which show local and remote nick changes (requested by giggsey, http://www.inspircd.org/forum/showthread.php?t=187)
Fix m_nonicks description to not say it's globops.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6725 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake it use the static text for the reason instead, i have a feeling clients are...
brain [Sun, 1 Apr 2007 17:01:42 +0000 (17:01 +0000)]
Make it use the static text for the reason instead, i have a feeling clients are looking for the text of the numeric rather than the numeric itself :/

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6724 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd m_jumpserver, allows server forwarding with RPL_REDIR numeric 010. xchat doesnt...
brain [Sun, 1 Apr 2007 16:36:00 +0000 (16:36 +0000)]
Add m_jumpserver, allows server forwarding with RPL_REDIR numeric 010. xchat doesnt seem to support this, can someone with mirc please test? (documentation to follow, so you know how.)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6723 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd <options:fixedquit> and <options:suffixquit> to go along with the existing <optio...
brain [Sun, 1 Apr 2007 15:22:54 +0000 (15:22 +0000)]
Add <options:fixedquit> and <options:suffixquit> to go along with the existing <options:prefixquit>. note that fixedquit overrides both suffix and prefix if set

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6722 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoTweak to numeric 378: is connecting from ident@host
w00t [Sat, 31 Mar 2007 21:24:33 +0000 (21:24 +0000)]
Tweak to numeric 378: is connecting from ident@host

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6721 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd macros IS_OPER() and IS_AWAY()
brain [Sat, 31 Mar 2007 20:45:45 +0000 (20:45 +0000)]
Add macros IS_OPER() and IS_AWAY()

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6720 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agohidechans: allow showing on self whois, QA, test if you're bored :p
w00t [Fri, 30 Mar 2007 22:48:21 +0000 (22:48 +0000)]
hidechans: allow showing on self whois, QA, test if you're bored :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6719 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd extra stuff to LIST.
brain [Fri, 30 Mar 2007 19:48:50 +0000 (19:48 +0000)]
Add extra stuff to LIST.
Firstly allow RFC-specified >x and <x, and allow for glob matching to match the topic text, as well as the channel name

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6718 e03df62e-2008-0410-955e-edbf42e46eb7