]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
17 years agoWhoops, make it pick up module-handled schemas correctly
brain [Sun, 11 Nov 2007 18:40:01 +0000 (18:40 +0000)]
Whoops, make it pick up module-handled schemas correctly

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

17 years agoThis works properly now. Files in the file:// schema are loaded by the core.
brain [Sun, 11 Nov 2007 18:27:25 +0000 (18:27 +0000)]
This works properly now. Files in the file:// schema are loaded by the core.
Anything else will be loaded by a module, this isnt done yet. For remote includes to work,
your <module> tags for the remote includes modules must be in the base inspircd.conf file.
This is the only file gauranteed to be avaialble in pass 1 of the two pass config read.
At the end of pass 1, all files are opened/downloaded and placed into a map.

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

17 years agoMore stuff for this. Its starting to take shape a bit now, and is tidier than the...
brain [Sun, 11 Nov 2007 18:11:42 +0000 (18:11 +0000)]
More stuff for this. Its starting to take shape a bit now, and is tidier than the craq i came up with before

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

17 years agoBegin rethink on this. Warning, this WILL break your ircd if youre using trunk!
brain [Sun, 11 Nov 2007 17:53:57 +0000 (17:53 +0000)]
Begin rethink on this. Warning, this WILL break your ircd if youre using trunk!

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

17 years agoIn prep for remote includes, configuration reading is now two-pass.
brain [Sun, 11 Nov 2007 17:01:00 +0000 (17:01 +0000)]
In prep for remote includes, configuration reading is now two-pass.
Note that theres an important part missing from here, there can be a NON-BLOCKING delay between the start of pass 2 and the files being available for download.
At this point, ServerConfig::Read() should probably return an ENOTREADY or such at which point it gets monitored for ready state. The socket engine is ready at this point
so we can poll the socket engine for it. In the case of startup, the socket engine blocks in a private loop, its no good booting the ircd till we have a complete config!

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

17 years agoImplement roadmap item: "userrec::HasPermission -> map of maps, for (even faster...
brain [Sun, 11 Nov 2007 15:44:43 +0000 (15:44 +0000)]
Implement roadmap item: "userrec::HasPermission -> map of maps, for (even faster) access"
This is not a map of maps, but a single level map per oper, in non-opers this member is NULL.
Please note that this is not yet tested.

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

17 years agoFix crashes from badly written safeiters
brain [Sun, 11 Nov 2007 12:41:03 +0000 (12:41 +0000)]
Fix crashes from badly written safeiters

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

17 years agoMake iterators safe in FOREACH_MOD etc macros, so that ModuleManager::Detach() wont...
brain [Sun, 11 Nov 2007 01:29:50 +0000 (01:29 +0000)]
Make iterators safe in FOREACH_MOD etc macros, so that ModuleManager::Detach() wont screw up the iterator

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

17 years agoFix owines crashes here too
brain [Sat, 10 Nov 2007 20:34:30 +0000 (20:34 +0000)]
Fix owines crashes here too

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

17 years agoFix crashes found by owine (usually on startup)
brain [Sat, 10 Nov 2007 20:04:39 +0000 (20:04 +0000)]
Fix crashes found by owine (usually on startup)

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

17 years agoSecond test commit
brain [Sat, 10 Nov 2007 17:32:10 +0000 (17:32 +0000)]
Second test commit

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

17 years agoTest commit
brain [Sat, 10 Nov 2007 17:28:05 +0000 (17:28 +0000)]
Test commit

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

17 years agom_spy no longer implements SPYNAMES, instead it overrides normal NAMES on the event...
brain [Sat, 10 Nov 2007 16:19:46 +0000 (16:19 +0000)]
m_spy no longer implements SPYNAMES, instead it overrides normal NAMES on the event that: (1) you are an oper and (2) you are not actually ON the channel.
This way it will not break m_auditorium, m_delayjoin etc, however it will work properly with mircs annoying assumptions in its channel list

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

17 years agoSPYLIST is no longer required in 1.2, remove
brain [Sat, 10 Nov 2007 16:07:07 +0000 (16:07 +0000)]
SPYLIST is no longer required in 1.2, remove

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

17 years agoAllow eline/gline/kline/zline by nick
brain [Sat, 10 Nov 2007 15:43:20 +0000 (15:43 +0000)]
Allow eline/gline/kline/zline by nick

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

17 years agoRoadmap item "Fix jointhrottle to not try 'throttle' clients during a netmerge (requi...
brain [Fri, 9 Nov 2007 21:51:48 +0000 (21:51 +0000)]
Roadmap item "Fix jointhrottle to not try 'throttle' clients during a netmerge (requires changing join event to be aware of netmerge?)" -- 1.2 only
requires an extra parameter to OnUserJoin, bool sync. usually false, but FJOIN code during burst sets it to true.

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

17 years agoSame here, fix some minor memory leaks noticed by w00t
brain [Fri, 9 Nov 2007 17:18:19 +0000 (17:18 +0000)]
Same here, fix some minor memory leaks noticed by w00t

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

17 years agoWe should probably UseInterface last, too
brain [Fri, 9 Nov 2007 17:06:26 +0000 (17:06 +0000)]
We should probably UseInterface last, too

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

17 years agoTheres actually more to this. Before we throw, delete cu (the destructor WONT be...
brain [Fri, 9 Nov 2007 17:05:42 +0000 (17:05 +0000)]
Theres actually more to this. Before we throw, delete cu (the destructor WONT be called if we throw from a constructor, we must do this tidyup ourselves)
And move some other throws below OnRehash call

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

17 years agoSame fix here
brain [Fri, 9 Nov 2007 17:04:17 +0000 (17:04 +0000)]
Same fix here

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

17 years agoRehash method added which frees unused memory from the hash_map. Has a delete-safe...
brain [Mon, 5 Nov 2007 19:52:16 +0000 (19:52 +0000)]
Rehash method added which frees unused memory from the hash_map. Has a delete-safe iterator. see comments.

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

17 years agoWhy the hell the includes are half way down the damn file in modules.h is beyond...
brain [Sun, 4 Nov 2007 23:33:40 +0000 (23:33 +0000)]
Why the hell the includes are half way down the damn file in modules.h is beyond me. lets fix this.

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

17 years agoBanCache: Add a negative hit for an IP address upon FullConnect.
w00t [Sun, 4 Nov 2007 23:15:26 +0000 (23:15 +0000)]
BanCache: Add a negative hit for an IP address upon FullConnect.

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

17 years agoFix the FIXME related to new module event and loading stuff
brain [Sun, 4 Nov 2007 23:07:27 +0000 (23:07 +0000)]
Fix the FIXME related to new module event and loading stuff

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

17 years agoIntegrate K/Gline into the bancache system by making some modifications to DefaultApp...
w00t [Sun, 4 Nov 2007 23:04:47 +0000 (23:04 +0000)]
Integrate K/Gline into the bancache system by making some modifications to DefaultApply method. This means any type of XLine that uses DefaultApply can hook into the bancache system and add positive hits quickly and easily with no modification, which is neat.

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

17 years agoOn failure to load a module, DetachAll on the module pointer, also, try to free modul...
brain [Sun, 4 Nov 2007 22:58:40 +0000 (22:58 +0000)]
On failure to load a module, DetachAll on the module pointer, also, try to free module handle

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

17 years agoRemove Implements() method from every module. booya.
brain [Sun, 4 Nov 2007 22:51:22 +0000 (22:51 +0000)]
Remove Implements() method from every module. booya.

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

17 years agowtf at the line endings in this bag of spanners
brain [Sun, 4 Nov 2007 22:43:11 +0000 (22:43 +0000)]
wtf at the line endings in this bag of spanners

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

17 years agoAnd whoops, typo
brain [Sun, 4 Nov 2007 22:16:30 +0000 (22:16 +0000)]
And whoops, typo

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

17 years agoFix these to use new hook system (u_listmode wasnt fixed yet)
brain [Sun, 4 Nov 2007 22:15:46 +0000 (22:15 +0000)]
Fix these to use new hook system (u_listmode wasnt fixed yet)

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

17 years agoGet rid of global_implementation[] and implement_lists[] from here
brain [Sun, 4 Nov 2007 22:07:36 +0000 (22:07 +0000)]
Get rid of global_implementation[] and implement_lists[] from here

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

17 years agoInstead of a vector of vectors, use an array of vectors as in the original spec on...
brain [Sun, 4 Nov 2007 21:57:27 +0000 (21:57 +0000)]
Instead of a vector of vectors, use an array of vectors as in the original spec on Development/Hooking.
This is faster, as only the inner list resizes, and this avoids calls to std::vector::operator[]

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

17 years agoRemove debug junk from ModuleManager::SetPriority
brain [Sun, 4 Nov 2007 21:29:01 +0000 (21:29 +0000)]
Remove debug junk from ModuleManager::SetPriority

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

17 years agoSomehow, we missed one
brain [Sun, 4 Nov 2007 21:26:24 +0000 (21:26 +0000)]
Somehow, we missed one

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

17 years agoFix non-POD passing
brain [Sun, 4 Nov 2007 21:25:29 +0000 (21:25 +0000)]
Fix non-POD passing

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

17 years agoHonking huge commit. Removal of DELETE() template that never worked right anyway
brain [Sun, 4 Nov 2007 21:24:40 +0000 (21:24 +0000)]
Honking huge commit. Removal of DELETE() template that never worked right anyway

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

17 years agoComments
brain [Sun, 4 Nov 2007 21:19:29 +0000 (21:19 +0000)]
Comments

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

17 years agoAaaand, the rest of it
brain [Sun, 4 Nov 2007 21:10:44 +0000 (21:10 +0000)]
Aaaand, the rest of it

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

17 years agoMODERR tidyups
brain [Sun, 4 Nov 2007 21:07:54 +0000 (21:07 +0000)]
MODERR tidyups

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

17 years agoFix the two FIXMEs
brain [Sun, 4 Nov 2007 20:19:25 +0000 (20:19 +0000)]
Fix the two FIXMEs

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

17 years agoRemove some now redundant if (!empty) checks in FOREACH_MOD
brain [Sun, 4 Nov 2007 20:10:20 +0000 (20:10 +0000)]
Remove some now redundant if (!empty) checks in FOREACH_MOD

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

17 years agoComments
brain [Sun, 4 Nov 2007 20:02:03 +0000 (20:02 +0000)]
Comments

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

17 years agoChange this, risking a crash otherwise
brain [Sun, 4 Nov 2007 19:53:58 +0000 (19:53 +0000)]
Change this, risking a crash otherwise

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

17 years agoRemove no longer required typedef
brain [Sun, 4 Nov 2007 19:52:41 +0000 (19:52 +0000)]
Remove no longer required typedef

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

17 years agoComment all the new stuff
brain [Sun, 4 Nov 2007 19:49:36 +0000 (19:49 +0000)]
Comment all the new stuff

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

17 years agoSome more to fix still, modules probably wont load correctly atm
brain [Sun, 4 Nov 2007 19:35:34 +0000 (19:35 +0000)]
Some more to fix still, modules probably wont load correctly atm

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

17 years agoNot yet tested: remove last vestiges of modules[] and module_names[] arrays.
brain [Sun, 4 Nov 2007 19:28:22 +0000 (19:28 +0000)]
Not yet tested: remove last vestiges of modules[] and module_names[] arrays.

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

17 years agoRemove our vectors of Module*/ircd_module*, replace with a map of std::pair<ircd_modu...
brain [Sun, 4 Nov 2007 19:12:55 +0000 (19:12 +0000)]
Remove our vectors of Module*/ircd_module*, replace with a map of std::pair<ircd_module*, Module*>

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

17 years agoAll done... i think. Just tidying up to be done, removal of Implements() method from...
brain [Sun, 4 Nov 2007 18:37:14 +0000 (18:37 +0000)]
All done... i think. Just tidying up to be done, removal of Implements() method from all modules.

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

17 years agoConvert all to new Attach() system. The Implements() method needs removing from all...
brain [Sun, 4 Nov 2007 18:30:43 +0000 (18:30 +0000)]
Convert all to new Attach() system. The Implements() method needs removing from all modules as it is dead weight.
WARNING: there are segfaults here! HERE BE DRAGONS, i am not finished!

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

17 years agoExtra debug logging
brain [Sun, 4 Nov 2007 17:12:00 +0000 (17:12 +0000)]
Extra debug logging

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

17 years agoThis compiles, but note most modules are currently broken, they dont Attach()
brain [Sun, 4 Nov 2007 16:55:45 +0000 (16:55 +0000)]
This compiles, but note most modules are currently broken, they dont Attach()

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

17 years agoMore craq
brain [Sun, 4 Nov 2007 16:50:50 +0000 (16:50 +0000)]
More craq

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

17 years agoAgain
brain [Sun, 4 Nov 2007 16:38:14 +0000 (16:38 +0000)]
Again

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

17 years agoAnother too
brain [Sun, 4 Nov 2007 16:35:34 +0000 (16:35 +0000)]
Another too

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

17 years agoAnother
brain [Sun, 4 Nov 2007 16:33:54 +0000 (16:33 +0000)]
Another

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

17 years agoFor now, just fix the Priority Prioritize(). We might be able to do the rest with...
brain [Sun, 4 Nov 2007 16:32:18 +0000 (16:32 +0000)]
For now, just fix the Priority Prioritize(). We might be able to do the rest with a perl script

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

17 years agoWhoops and make it valid
brain [Sun, 4 Nov 2007 16:27:24 +0000 (16:27 +0000)]
Whoops and make it valid

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

17 years agoFix this one too
brain [Sun, 4 Nov 2007 16:26:46 +0000 (16:26 +0000)]
Fix this one too

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

17 years agoFix this to compile
brain [Sun, 4 Nov 2007 16:24:43 +0000 (16:24 +0000)]
Fix this to compile

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

17 years agoBring back Prioritize (needs to occur after module load) with a different declaration
brain [Sun, 4 Nov 2007 16:23:06 +0000 (16:23 +0000)]
Bring back Prioritize (needs to occur after module load) with a different declaration

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

17 years agoNext part of Development/Hooking (see wiki)
brain [Sun, 4 Nov 2007 15:39:06 +0000 (15:39 +0000)]
Next part of Development/Hooking (see wiki)
Module::Prioritize and Module::Implements are now GONE.
ModuleManager::MoveTo, MoveBefore, MoveAfter, MoveFirst, MoveLast are GONE too.

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

17 years agoDevelopment/Hooking in full swing now: WARNING, this will break ALL modules for the...
brain [Sun, 4 Nov 2007 15:29:49 +0000 (15:29 +0000)]
Development/Hooking in full swing now: WARNING, this will break ALL modules for the time being until complete!

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

17 years agoAdd EventHandlers structure for Development/Hooking
brain [Sun, 4 Nov 2007 15:06:21 +0000 (15:06 +0000)]
Add EventHandlers structure for Development/Hooking

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

17 years agoAvoid code duplication, just call XLine::Apply() rather than retyping all that moronb...
brain [Sun, 4 Nov 2007 14:18:42 +0000 (14:18 +0000)]
Avoid code duplication, just call XLine::Apply() rather than retyping all that moronbanner stuff each time

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

17 years agoBanCache positive hits should be overridden by E:, thanks Brain
w00t [Sun, 4 Nov 2007 13:47:52 +0000 (13:47 +0000)]
BanCache positive hits should be overridden by E:, thanks Brain

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

17 years agoHook BanCache up to work on Z:Lines. BanCache is checked first, for positive hits...
w00t [Sun, 4 Nov 2007 13:44:26 +0000 (13:44 +0000)]
Hook BanCache up to work on Z:Lines. BanCache is checked first, for positive hits, users are quit instantly. For negative hits, no checking is done (though we don't have any negative hits just yet). If no hit, zlines are checked -- if user is matched by a Z:, positive bancache entry is inserted.

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

17 years agoInstantiate BanCache in InspIRCd class.
w00t [Sun, 4 Nov 2007 13:23:15 +0000 (13:23 +0000)]
Instantiate BanCache in InspIRCd class.

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

17 years agoMake bancache compile on windows
brain [Sun, 4 Nov 2007 11:04:03 +0000 (11:04 +0000)]
Make bancache compile on windows

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

17 years agoAdd bancache.* to windows projects
brain [Sun, 4 Nov 2007 10:55:49 +0000 (10:55 +0000)]
Add bancache.* to windows projects

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

17 years agoThere are two forms of map::erase(), one erases by key the other by iterator.
brain [Sun, 4 Nov 2007 00:54:07 +0000 (00:54 +0000)]
There are two forms of map::erase(), one erases by key the other by iterator.
if we erase by key, this involves a second search to find that key.
Fix to pass the iterator instead and avoid the second map search :)

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

17 years agoRemove some unnecessary headers from places, commit working BanCacheManager skeleton...
w00t [Sun, 4 Nov 2007 00:44:28 +0000 (00:44 +0000)]
Remove some unnecessary headers from places, commit working BanCacheManager skeleton. Work in progress, ignore it for now. Doesn't do anything, either.

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

17 years agoYou'll hit yourself w00t. You left the ; off both the class decls :p
brain [Sat, 3 Nov 2007 22:56:40 +0000 (22:56 +0000)]
You'll hit yourself w00t. You left the ; off both the class decls :p

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

17 years agoRemove needless headers from typedefs.h
brain [Sat, 3 Nov 2007 22:55:14 +0000 (22:55 +0000)]
Remove needless headers from typedefs.h

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

17 years agoThis won't work yet.
w00t [Sat, 3 Nov 2007 22:53:51 +0000 (22:53 +0000)]
This won't work yet.

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

17 years agoAdd bancache.coo/h. Nothing in them, yet.
w00t [Sat, 3 Nov 2007 21:19:39 +0000 (21:19 +0000)]
Add bancache.coo/h. Nothing in them, yet.

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

17 years agoFinal part of bug #441 fix (trunk)
brain [Sat, 3 Nov 2007 19:59:18 +0000 (19:59 +0000)]
Final part of bug #441 fix (trunk)

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

17 years agoPartial fix for bug #441
brain [Sat, 3 Nov 2007 19:55:04 +0000 (19:55 +0000)]
Partial fix for bug #441

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

17 years agoRelax detection rules on openssl and gnutls, there arent any commonly used versions...
brain [Sat, 3 Nov 2007 19:48:58 +0000 (19:48 +0000)]
Relax detection rules on openssl and gnutls, there arent any commonly used versions around any more that we dont support

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

17 years agoAdd --disable-rpath. Probably wont backport this for the time being
brain [Sat, 3 Nov 2007 18:09:26 +0000 (18:09 +0000)]
Add --disable-rpath. Probably wont backport this for the time being

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

17 years agoMore anal config parsing, validates channel fields, ip address fields (with/without...
brain [Sat, 3 Nov 2007 16:14:29 +0000 (16:14 +0000)]
More anal config parsing, validates channel fields, ip address fields (with/without wildcard) hostname fields, fields which may not contain spaces

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

17 years agoForce to uuid on applying a qline, rather than disconnecting
brain [Fri, 2 Nov 2007 21:27:01 +0000 (21:27 +0000)]
Force to uuid on applying a qline, rather than disconnecting

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

17 years agoWe cant return NULL if the first hit we get expires in MatchLine, there may be anothe...
brain [Fri, 2 Nov 2007 21:02:40 +0000 (21:02 +0000)]
We cant return NULL if the first hit we get expires in MatchLine, there may be another *after* it which matches, meaning that user may escape retribution ;)
(thanks for pointing that out, aquanight)

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

17 years agoI must have been smoking craq, this would never have worked
brain [Fri, 2 Nov 2007 20:30:55 +0000 (20:30 +0000)]
I must have been smoking craq, this would never have worked

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

17 years agoDont propogate K-lines
brain [Fri, 2 Nov 2007 20:17:21 +0000 (20:17 +0000)]
Dont propogate K-lines

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

17 years agoImplement DELLINE, allow both DELLINE and ADDLINE to take a server OR client origin
brain [Fri, 2 Nov 2007 20:13:10 +0000 (20:13 +0000)]
Implement DELLINE, allow both DELLINE and ADDLINE to take a server OR client origin

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

17 years agoComment documentation for all the new shizzle
brain [Fri, 2 Nov 2007 16:36:11 +0000 (16:36 +0000)]
Comment documentation for all the new shizzle

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

17 years agoWhoops, new expiry stuff was expiring perm lines! fixed.
brain [Fri, 2 Nov 2007 16:14:31 +0000 (16:14 +0000)]
Whoops, new expiry stuff was expiring perm lines! fixed.

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

17 years agoExpire lines on burst, and ensure that if an eline expires while we're checking eline...
brain [Fri, 2 Nov 2007 15:58:46 +0000 (15:58 +0000)]
Expire lines on burst, and ensure that if an eline expires while we're checking elines, the iterator is not trashed

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

17 years agoExpire timed glines that are due for expiry on stats request for it, thanks for the...
brain [Fri, 2 Nov 2007 15:52:34 +0000 (15:52 +0000)]
Expire timed glines that are due for expiry on stats request for it, thanks for the idea danieldg

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

17 years agoPut back different stats numerics for /stats g, /stats k etc
brain [Fri, 2 Nov 2007 15:22:23 +0000 (15:22 +0000)]
Put back different stats numerics for /stats g, /stats k etc

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

17 years agoWhoops
brain [Fri, 2 Nov 2007 14:04:11 +0000 (14:04 +0000)]
Whoops

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

17 years agoHopefully fix the bursting of xlines to work again (even with unknown types) and...
brain [Fri, 2 Nov 2007 14:01:55 +0000 (14:01 +0000)]
Hopefully fix the bursting of xlines to work again (even with unknown types) and also add facility to enumerate them

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

17 years agoMove lookup_lines to private, theres no need for it to be public any more
brain [Fri, 2 Nov 2007 13:46:51 +0000 (13:46 +0000)]
Move lookup_lines to private, theres no need for it to be public any more

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

17 years agoTidy up, and make the identifer for a line type be std::string not char
brain [Fri, 2 Nov 2007 13:45:02 +0000 (13:45 +0000)]
Tidy up, and make the identifer for a line type be std::string not char

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

17 years agoXLines now only checked for expiry on positive hit. saves us a honking big O(n) loop.
brain [Fri, 2 Nov 2007 12:51:22 +0000 (12:51 +0000)]
XLines now only checked for expiry on positive hit. saves us a honking big O(n) loop.

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

17 years agoxline gutting, once more. There is no longer an active_lines vector, and no requireme...
brain [Fri, 2 Nov 2007 12:35:18 +0000 (12:35 +0000)]
xline gutting, once more. There is no longer an active_lines vector, and no requirement for sorting. Expiry will be cheked on a per-line basis for each positive hit on that line,
saving on cpu time.

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

17 years agoInstaller that packages none of the extra/ modules
brain [Fri, 2 Nov 2007 10:52:49 +0000 (10:52 +0000)]
Installer that packages none of the extra/ modules

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

17 years agoMake misconfiguration of spanningtree more 'fatal' so we get less morons coming to...
brain [Thu, 1 Nov 2007 18:19:54 +0000 (18:19 +0000)]
Make misconfiguration of spanningtree more 'fatal' so we get less morons coming to us saying 'it wont link' and not knowing its skipped their invalid link tag

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

17 years agoComment a message out that people regularly attempt to interpret
w00t [Thu, 1 Nov 2007 15:19:59 +0000 (15:19 +0000)]
Comment a message out that people regularly attempt to interpret

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