]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
15 years agoSet Id property on a bunch of modules which lack it, etc.
brain [Mon, 22 Sep 2008 15:22:15 +0000 (15:22 +0000)]
Set Id property on a bunch of modules which lack it, etc.

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

15 years agowarning-free on windows
brain [Mon, 22 Sep 2008 11:28:44 +0000 (11:28 +0000)]
warning-free on windows

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

15 years agoWindows compile fixes for RLine
brain [Mon, 22 Sep 2008 08:38:45 +0000 (08:38 +0000)]
Windows compile fixes for RLine

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

15 years agoSecond part of fix for bug #605, make adding and removal of lines not case sensitive
brain [Mon, 22 Sep 2008 01:16:15 +0000 (01:16 +0000)]
Second part of fix for bug #605, make adding and removal of lines not case sensitive

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

15 years agoFix for bug #605 reported by MacGuyver, if a line is expired when we are adding anoth...
brain [Mon, 22 Sep 2008 01:11:23 +0000 (01:11 +0000)]
Fix for bug #605 reported by MacGuyver, if a line is expired when we are adding another with the same hostmask, replace the existing line with the new one

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

15 years agoFix /STATS output to show the regex module in use
brain [Sun, 21 Sep 2008 20:37:24 +0000 (20:37 +0000)]
Fix /STATS output to show the regex module in use

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

15 years agoUpdate config to remove m_filter_pcre and document new tags
brain [Sun, 21 Sep 2008 18:21:34 +0000 (18:21 +0000)]
Update config to remove m_filter_pcre and document new tags

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

15 years agoFix leak, thanks aquanight
brain [Sun, 21 Sep 2008 16:55:12 +0000 (16:55 +0000)]
Fix leak, thanks aquanight

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

15 years agoNo longer needed
brain [Sun, 21 Sep 2008 16:21:10 +0000 (16:21 +0000)]
No longer needed

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

15 years agoFix re-creation of config filters
brain [Sun, 21 Sep 2008 16:18:56 +0000 (16:18 +0000)]
Fix re-creation of config filters

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

15 years agoBecause m_filter reads definitions from the conf, unlike rline, when we see our engin...
brain [Sun, 21 Sep 2008 16:11:27 +0000 (16:11 +0000)]
Because m_filter reads definitions from the conf, unlike rline, when we see our engine via OnLoadModule we must do a partial rehash to get these lines from the conf and ensure theyre applied, because they would have failed to apply initially.

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

15 years agoWell, that was moronic of me
brain [Sun, 21 Sep 2008 16:06:09 +0000 (16:06 +0000)]
Well, that was moronic of me

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

15 years agosomeone forget an instance
brain [Sun, 21 Sep 2008 16:01:48 +0000 (16:01 +0000)]
someone forget an instance

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

15 years agoThis compiles but is NOT tested yet. Do not use unless you like pain.
brain [Sun, 21 Sep 2008 15:52:45 +0000 (15:52 +0000)]
This compiles but is NOT tested yet. Do not use unless you like pain.

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

15 years agoBe consistent. Use ServerInstance in all places instead of 'Instance' in half. This...
w00t [Sun, 21 Sep 2008 12:56:03 +0000 (12:56 +0000)]
Be consistent. Use ServerInstance in all places instead of 'Instance' in half. This has bugged me forever :p. I think I got all of extra/ too..

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

15 years agoFixes. Dont try and catch exceptions within the RLine ctor, we dont always want crud...
brain [Sun, 21 Sep 2008 12:24:25 +0000 (12:24 +0000)]
Fixes. Dont try and catch exceptions within the RLine ctor, we dont always want crud outputting to snomask x in every situation. Its up to the caller
that creates the object as to what they want to do with the exception and if they want it shown.

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

15 years agoFix various rline bugs, implement /stats R, and fix the issue where you get no error...
brain [Sun, 21 Sep 2008 12:17:31 +0000 (12:17 +0000)]
Fix various rline bugs, implement /stats R, and fix the issue where you get no error. "Something will already have said why it fucked up" -- what
about when the rline fails due to missing provider?
Also fix the fact that we dont have a catch around the Generate() in addline, which would just make insp abort.

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

15 years agoFix bug discovered by Ankit, m_rline loaded without regex provider causes segfault...
brain [Sun, 21 Sep 2008 11:58:51 +0000 (11:58 +0000)]
Fix bug discovered by Ankit, m_rline loaded without regex provider causes segfault because of missing check for NULL when querying RegexProvider
interface

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

15 years agoFix the 'i/o error on connection (no error)' stuff, by displaying 'connected closed...
brain [Sun, 21 Sep 2008 10:55:18 +0000 (10:55 +0000)]
Fix the 'i/o error on connection (no error)' stuff, by displaying 'connected closed unexpectedly' when errno == 0.
Also trigger failover whenever a connection times out in the new authentication timeout code (the connection isnt
properly established so the failover should trigger)

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

15 years agoFix some comment which was left over from before the conversion from User* to UID
psychon [Sun, 21 Sep 2008 09:07:56 +0000 (09:07 +0000)]
Fix some comment which was left over from before the conversion from User* to UID

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

15 years agoMake regex providers load correctly. Move m_rline to use the regex providers, and...
aquanight [Sun, 21 Sep 2008 01:51:29 +0000 (01:51 +0000)]
Make regex providers load correctly. Move m_rline to use the regex providers, and also move m_rline out of extras/. Document provider modules, <rline:engine> and particularly the uselessness of <rline engine="glob">.

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

15 years agoFix crash
brain [Sun, 21 Sep 2008 00:51:18 +0000 (00:51 +0000)]
Fix crash

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

15 years agoMove m_regex.h and m_regex_glob.cpp to main modules directory, as these have no requi...
aquanight [Sat, 20 Sep 2008 23:01:53 +0000 (23:01 +0000)]
Move m_regex.h and m_regex_glob.cpp to main modules directory, as these have no requirements.

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

15 years agoRemove the old TODO comment
brain [Sat, 20 Sep 2008 22:25:47 +0000 (22:25 +0000)]
Remove the old TODO comment

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

15 years agoFix a rather nasty race condition revealed by my reading through the comments and...
brain [Sat, 20 Sep 2008 21:46:56 +0000 (21:46 +0000)]
Fix a rather nasty race condition revealed by my reading through the comments and enhancing them. Back when i did executeable includes, i placed a 'todo' in the code which said something along the lines of:
'we cant pass a User* into the config reader any more, because when the config reader thread finishes, that user may be gone and this will crash. Consider using an UID instead so that if the user vanishes, we can
detect this situation.' Of course, nobody ever did this, so i'm doing it now to ensure we dont come up against some particularly ugly race condition crashes!

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

15 years agoMore comments
brain [Sat, 20 Sep 2008 21:20:15 +0000 (21:20 +0000)]
More comments

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

15 years agoMore comments, and remove some unused craq. Someone (that being me) once wrote a...
brain [Sat, 20 Sep 2008 21:14:25 +0000 (21:14 +0000)]
More comments, and remove some unused craq. Someone (that being me) once wrote a craqy imitation of std::bitset called dynamicbitmask which took up a large amount of hashcomp.{h,cpp} before i actually knew that std::bitset existed. NOTHING has ever used this class, so whack it as tidyup, knowing it wont
break anything :)

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

15 years agomore comments
brain [Sat, 20 Sep 2008 20:53:04 +0000 (20:53 +0000)]
more comments

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

15 years agoStart documenting stuff for 3rd party developers. Comments only, won't affect feature...
brain [Sat, 20 Sep 2008 20:40:29 +0000 (20:40 +0000)]
Start documenting stuff for 3rd party developers. Comments only, won't affect feature freeze

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

15 years agoRoll back core matcher to the 1.1 design, which doesnt fail various unit tests
brain [Sat, 20 Sep 2008 17:52:48 +0000 (17:52 +0000)]
Roll back core matcher to the 1.1 design, which doesnt fail various unit tests

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

15 years agoAdd test suite tests for wildcard function for failures discovered by Ankit
brain [Sat, 20 Sep 2008 17:44:04 +0000 (17:44 +0000)]
Add test suite tests for wildcard function for failures discovered by Ankit

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

15 years agolol
peavey [Fri, 19 Sep 2008 20:05:36 +0000 (20:05 +0000)]
lol

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

15 years agoFix my massacre of kqueue, filters may not be or'd.
w00t [Fri, 19 Sep 2008 18:39:26 +0000 (18:39 +0000)]
Fix my massacre of kqueue, filters may not be or'd.

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

15 years agoinbound sockets need a timeout, too. 30 secs should be pleanty
brain [Fri, 19 Sep 2008 11:07:42 +0000 (11:07 +0000)]
inbound sockets need a timeout, too. 30 secs should be pleanty

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

15 years agoDon't check E:Lines when enforcing Q:Lines on connected users. Thanks MacGyver.
w00t [Fri, 19 Sep 2008 09:34:03 +0000 (09:34 +0000)]
Don't check E:Lines when enforcing Q:Lines on connected users. Thanks MacGyver.

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

15 years agoImplement timeout on outgoing server connections as per our docs <link:timeout>
peavey [Fri, 19 Sep 2008 02:00:04 +0000 (02:00 +0000)]
Implement timeout on outgoing server connections as per our docs <link:timeout>

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

15 years agoReinvert order of insert/erase into user hash_map to avoid a lil crash :)
peavey [Thu, 18 Sep 2008 23:37:58 +0000 (23:37 +0000)]
Reinvert order of insert/erase into user hash_map to avoid a lil crash :)

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

15 years agoMerge vc90 update patch from IronLegend, thanks
brain [Wed, 17 Sep 2008 22:08:50 +0000 (22:08 +0000)]
Merge vc90 update patch from IronLegend, thanks

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

15 years agoRoll back tweak to the starttls spec requested by kvirc devs, sorry we cant do this...
brain [Wed, 17 Sep 2008 18:53:19 +0000 (18:53 +0000)]
Roll back tweak to the starttls spec requested by kvirc devs, sorry we cant do this as we have other client devs breathing down our throats that it broke their clients :(

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

15 years agoShrink users properly on quit, and make cloaks for all existing users on load, for...
brain [Tue, 16 Sep 2008 17:32:32 +0000 (17:32 +0000)]
Shrink users properly on quit, and make cloaks for all existing users on load, for situations where the cloaking module is loaded after the ircd is booted. Thanks Ankit

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

15 years agoBe more verbose in ValidateNotEmpty on failure. Patch by CyberbotX.
peavey [Sun, 14 Sep 2008 12:30:16 +0000 (12:30 +0000)]
Be more verbose in ValidateNotEmpty on failure. Patch by CyberbotX.

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

15 years agoPatch by dz to remove the one usage of strdup/strtok_r, which is very un-C++ behavior...
special [Sun, 14 Sep 2008 03:30:39 +0000 (03:30 +0000)]
Patch by dz to remove the one usage of strdup/strtok_r, which is very un-C++ behavior (and silly, since we have sepstream)

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

15 years agodont try and cloak if no valid cloak was returned (eg. localhost)
peavey [Sun, 14 Sep 2008 00:47:57 +0000 (00:47 +0000)]
dont try and cloak if no valid cloak was returned (eg. localhost)

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

15 years agoChanged Allowed Modes to bitsets.
aquanight [Sat, 13 Sep 2008 15:47:01 +0000 (15:47 +0000)]
Changed Allowed Modes to bitsets.

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

15 years agoMerge commit 'danieldg/out-12'
w00t [Sat, 13 Sep 2008 14:27:25 +0000 (14:27 +0000)]
Merge commit 'danieldg/out-12'

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

15 years agomore namespace fix0rz
peavey [Sat, 13 Sep 2008 14:02:24 +0000 (14:02 +0000)]
more namespace fix0rz

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

15 years agoOptimisation
brain [Sat, 13 Sep 2008 13:58:16 +0000 (13:58 +0000)]
Optimisation

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

15 years agonamespace fix0rz
peavey [Sat, 13 Sep 2008 13:58:03 +0000 (13:58 +0000)]
namespace fix0rz

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

15 years agoFix setting of +x before we've processed an OnUserConnect
brain [Sat, 13 Sep 2008 13:57:08 +0000 (13:57 +0000)]
Fix setting of +x before we've processed an OnUserConnect

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

15 years agoRemove unneeded namespace stuff.
w00t [Sat, 13 Sep 2008 13:16:22 +0000 (13:16 +0000)]
Remove unneeded namespace stuff.

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

15 years agoMake the 'ancient OS' warning a bit more strongly worded.
w00t [Sat, 13 Sep 2008 13:02:16 +0000 (13:02 +0000)]
Make the 'ancient OS' warning a bit more strongly worded.

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

15 years agoMinor style tidyup.
w00t [Fri, 12 Sep 2008 20:56:49 +0000 (20:56 +0000)]
Minor style tidyup.

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

15 years agoLast cleanup. All trunk extras now builds again.
peavey [Fri, 12 Sep 2008 20:07:17 +0000 (20:07 +0000)]
Last cleanup. All trunk extras now builds again.

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

15 years agofix for listensocket, tested and also working like a charm.
peavey [Fri, 12 Sep 2008 20:02:48 +0000 (20:02 +0000)]
fix for listensocket, tested and also working like a charm.

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

15 years agomore cleanup
peavey [Fri, 12 Sep 2008 19:56:39 +0000 (19:56 +0000)]
more cleanup

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

15 years agocleanup
peavey [Fri, 12 Sep 2008 19:53:12 +0000 (19:53 +0000)]
cleanup

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

15 years agofix for listenbase, tested and works like a charm.
peavey [Fri, 12 Sep 2008 19:40:42 +0000 (19:40 +0000)]
fix for listenbase, tested and works like a charm.

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

15 years agoCleanup of some internals. Tested via m_httpd.
w00t [Fri, 12 Sep 2008 12:08:25 +0000 (12:08 +0000)]
Cleanup of some internals. Tested via m_httpd.

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

15 years agoRemove proxyscan, it doesn't exist now.
w00t [Thu, 11 Sep 2008 23:47:13 +0000 (23:47 +0000)]
Remove proxyscan, it doesn't exist now.

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

15 years agoRemove some duplication, everything calls the SE equivilant anyway.
w00t [Thu, 11 Sep 2008 23:45:14 +0000 (23:45 +0000)]
Remove some duplication, everything calls the SE equivilant anyway.

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

15 years agoRemove useless parameter.
w00t [Thu, 11 Sep 2008 23:45:09 +0000 (23:45 +0000)]
Remove useless parameter.

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

15 years agoFix a comment.
w00t [Thu, 11 Sep 2008 23:45:06 +0000 (23:45 +0000)]
Fix a comment.

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

15 years agoFix KILL server-notice duplication
aquanight [Thu, 11 Sep 2008 16:33:35 +0000 (16:33 +0000)]
Fix KILL server-notice duplication

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

15 years agoExperimental WSAPoll (thanks for not just using poll(), guys) support for Windows...
w00t [Thu, 11 Sep 2008 13:17:51 +0000 (13:17 +0000)]
Experimental WSAPoll (thanks for not just using poll(), guys) support for Windows. Untested, uncompiled.

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

15 years agoMinor stylistic improvements.
w00t [Thu, 11 Sep 2008 10:34:19 +0000 (10:34 +0000)]
Minor stylistic improvements.

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

15 years agoThese socket engines may now recieve write and read events in the same cycle, same...
w00t [Thu, 11 Sep 2008 00:46:32 +0000 (00:46 +0000)]
These socket engines may now recieve write and read events in the same cycle, same as select and poll.

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

15 years agoFix a compile oops.
w00t [Thu, 11 Sep 2008 00:29:54 +0000 (00:29 +0000)]
Fix a compile oops.

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

15 years agoThere is absolutely no need to cache connect timeout.
w00t [Thu, 11 Sep 2008 00:15:42 +0000 (00:15 +0000)]
There is absolutely no need to cache connect timeout.

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

15 years agoRemove an unused member.
w00t [Thu, 11 Sep 2008 00:15:39 +0000 (00:15 +0000)]
Remove an unused member.

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

15 years agoWindows doesn't need blocking connect, IOCP was the cause of that.
w00t [Thu, 11 Sep 2008 00:15:34 +0000 (00:15 +0000)]
Windows doesn't need blocking connect, IOCP was the cause of that.

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

15 years agoRemove WaitingForWriteEvent, it seems to do *nothing* except confuse things. Also...
w00t [Thu, 11 Sep 2008 00:15:28 +0000 (00:15 +0000)]
Remove WaitingForWriteEvent, it seems to do *nothing* except confuse things. Also, don't close socket on http if FlushWriteBuf doesn't write it all in one go, in fact, don't try FlushWriteBuf at all - use the sockets default of waiting to be told it's safe to write data.

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

15 years agoBack out change, as this doesn't work properly with channel bans.. Prioritise before...
w00t [Wed, 10 Sep 2008 23:21:09 +0000 (23:21 +0000)]
Back out change, as this doesn't work properly with channel bans.. Prioritise before cloaking, as otherwise you may encounter usermode changes on a nonexistant user. (part of the original change too).

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

15 years agoBit of a tidyup, generate cloak whenever first set, not necessarily on connect
w00t [Wed, 10 Sep 2008 20:39:19 +0000 (20:39 +0000)]
Bit of a tidyup, generate cloak whenever first set, not necessarily on connect

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

15 years agoHook conn_umodes before anything else so that config order is less of a factor
w00t [Wed, 10 Sep 2008 19:44:21 +0000 (19:44 +0000)]
Hook conn_umodes before anything else so that config order is less of a factor

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

15 years agoClear out the string used for the temporarily stored hostname during DNS resolution...
special [Wed, 10 Sep 2008 17:48:18 +0000 (17:48 +0000)]
Clear out the string used for the temporarily stored hostname during DNS resolution. Should save at least strlen(host) per user

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

15 years agoMove XMLSocket to be modulemanager-provided, flash now has real socket support (so...
w00t [Wed, 10 Sep 2008 17:40:02 +0000 (17:40 +0000)]
Move XMLSocket to be modulemanager-provided, flash now has real socket support (so it's not as necessary), and most networks do not have flash clients using it

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

15 years agoFixed comments for cached host fields in User; 3/4 of these were completely incorrect.
special [Wed, 10 Sep 2008 17:21:19 +0000 (17:21 +0000)]
Fixed comments for cached host fields in User; 3/4 of these were completely incorrect.

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

15 years agoRemove a totally redundant method (this is already available via inheritance from...
w00t [Tue, 9 Sep 2008 14:27:04 +0000 (14:27 +0000)]
Remove a totally redundant method (this is already available via inheritance from EventHandler)

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

15 years agoRemember to free some stuff when failing in the ctor
brain [Tue, 9 Sep 2008 11:05:14 +0000 (11:05 +0000)]
Remember to free some stuff when failing in the ctor

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

15 years agofix compile errors (whoops)
brain [Tue, 9 Sep 2008 10:50:09 +0000 (10:50 +0000)]
fix compile errors (whoops)

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

15 years agoWhoops, schoolboy error
brain [Tue, 9 Sep 2008 10:28:38 +0000 (10:28 +0000)]
Whoops, schoolboy error

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

15 years agoAdd connmutex to mutex the connections vector, otherwise we can get access from two...
brain [Tue, 9 Sep 2008 10:21:30 +0000 (10:21 +0000)]
Add connmutex to mutex the connections vector, otherwise we can get access from two threads and it is stl. ew.

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

15 years agopeavey, w00t, this works now. Methods werent copied right. Please feel free to base...
brain [Tue, 9 Sep 2008 09:50:09 +0000 (09:50 +0000)]
peavey, w00t, this works now. Methods werent copied right. Please feel free to base the other sql module fixes on the diffs that i used to fix this.
ALSO now works on win32, tested!

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

15 years agofixed a /MT to be /MD
brain [Tue, 9 Sep 2008 09:37:41 +0000 (09:37 +0000)]
fixed a /MT to be /MD

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

15 years agofix various bodge-ups, we must have been tired when fixing this in the first place...
brain [Tue, 9 Sep 2008 08:54:36 +0000 (08:54 +0000)]
fix various bodge-ups, we must have been tired when fixing this in the first place to use the new api, methods are in the wrong places.

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

15 years agonot test compiled yet: sql modules werent working because someone chopped out the...
brain [Tue, 9 Sep 2008 08:32:46 +0000 (08:32 +0000)]
not test compiled yet: sql modules werent working because someone chopped out the important code that determines what port the new socket is bound to when binding to port "0". The GetPort() method belongs in the listensocketbase derived socket not the bufferedsocket one, and the code for determining the getsockname() belongs in the ctor for the listen derived socket.

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

15 years agoRemove a (now nonexistant) reference from .h
w00t [Mon, 8 Sep 2008 21:26:33 +0000 (21:26 +0000)]
Remove a (now nonexistant) reference from .h

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

15 years agoCheck the wrong way around is just stupid. ;p
w00t [Mon, 8 Sep 2008 21:21:44 +0000 (21:21 +0000)]
Check the wrong way around is just stupid. ;p

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

15 years agoFix warning, thanks peavums
w00t [Mon, 8 Sep 2008 21:19:34 +0000 (21:19 +0000)]
Fix warning, thanks peavums

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

15 years agoGrowl.
w00t [Mon, 8 Sep 2008 21:13:30 +0000 (21:13 +0000)]
Growl.

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

15 years agoRemove crappy, unsafe (and now unneeded!) casts.
w00t [Mon, 8 Sep 2008 20:59:16 +0000 (20:59 +0000)]
Remove crappy, unsafe (and now unneeded!) casts.

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

15 years agoMore compile fixes.
w00t [Mon, 8 Sep 2008 20:41:10 +0000 (20:41 +0000)]
More compile fixes.

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

15 years agoFix compile problems hopefully..
w00t [Mon, 8 Sep 2008 20:38:53 +0000 (20:38 +0000)]
Fix compile problems hopefully..

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

15 years ago(Attempt to) convert MySQL to using listener base.
w00t [Mon, 8 Sep 2008 20:34:31 +0000 (20:34 +0000)]
(Attempt to) convert MySQL to using listener base.

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

15 years agoRemove old listening stuff from spanningtree, use a new derived listener class.
w00t [Mon, 8 Sep 2008 19:23:22 +0000 (19:23 +0000)]
Remove old listening stuff from spanningtree, use a new derived listener class.

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

15 years agoGive httpd a custom listener class, specialised in creating HttpServerSockets.
w00t [Mon, 8 Sep 2008 19:23:19 +0000 (19:23 +0000)]
Give httpd a custom listener class, specialised in creating HttpServerSockets.

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

15 years agoRemove listening from BufferedSocket, it's bloaty and horrid. We have a ListenSocketB...
w00t [Mon, 8 Sep 2008 19:23:17 +0000 (19:23 +0000)]
Remove listening from BufferedSocket, it's bloaty and horrid. We have a ListenSocketBase class to handle this instead now. :)

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

15 years agoMake OnAcceptReady pure virtual, rename ListenSocket to ListenSocketBase, create...
w00t [Mon, 8 Sep 2008 16:58:41 +0000 (16:58 +0000)]
Make OnAcceptReady pure virtual, rename ListenSocket to ListenSocketBase, create ClientListenSocket and inherit from ListenSocketBase to create User objects.

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

15 years agoMove this to another (yet more appropriate) place, saves some syscalls in an unlikely...
w00t [Mon, 8 Sep 2008 16:58:37 +0000 (16:58 +0000)]
Move this to another (yet more appropriate) place, saves some syscalls in an unlikely condition.

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

15 years agoAdd incoming IP to OnAcceptReady
w00t [Mon, 8 Sep 2008 10:43:00 +0000 (10:43 +0000)]
Add incoming IP to OnAcceptReady

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