]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 years agoUpdate docs on how XLine system will be working
w00t [Thu, 1 Nov 2007 15:15:52 +0000 (15:15 +0000)]
Update docs on how XLine system will be working

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

16 years agoMake it compilable :p
brain [Wed, 31 Oct 2007 22:17:17 +0000 (22:17 +0000)]
Make it compilable :p

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

16 years agoThere, i think all thats now left is matches_*line which we can do with two overloade...
brain [Wed, 31 Oct 2007 22:16:42 +0000 (22:16 +0000)]
There, i think all thats now left is matches_*line which we can do with two overloaded methods Matches(const char type, const std::string &pattern) and
Matches(const char type, User* u)

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

16 years agoAdd XLine::SetCreateTime that removes gline_set_creation_time and friends
brain [Wed, 31 Oct 2007 22:15:03 +0000 (22:15 +0000)]
Add XLine::SetCreateTime that removes gline_set_creation_time and friends

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

16 years agoFix (?) stats chars
brain [Wed, 31 Oct 2007 22:00:25 +0000 (22:00 +0000)]
Fix (?) stats chars

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

16 years agoThis *should* fix expiry. Can someone else (w00t? :p) test for me, and check im not...
brain [Wed, 31 Oct 2007 21:43:56 +0000 (21:43 +0000)]
This *should* fix expiry. Can someone else (w00t? :p) test for me, and check im not committing something thats a pointless exercise in futility? :P

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

16 years agoMore debug in here
brain [Wed, 31 Oct 2007 21:09:35 +0000 (21:09 +0000)]
More debug in here

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

16 years agoStart to fix broken expiry
brain [Wed, 31 Oct 2007 20:54:27 +0000 (20:54 +0000)]
Start to fix broken expiry

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

16 years agoUse XLineFactory in ADDLINE, so that it can deal with anything the rest of the ircd...
brain [Wed, 31 Oct 2007 20:14:52 +0000 (20:14 +0000)]
Use XLineFactory in ADDLINE, so that it can deal with anything the rest of the ircd knows about

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

16 years agoMake it all compile.
brain [Wed, 31 Oct 2007 20:10:29 +0000 (20:10 +0000)]
Make it all compile.

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

16 years agoFix up to pass User*
brain [Wed, 31 Oct 2007 19:51:03 +0000 (19:51 +0000)]
Fix up to pass User*

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

16 years agoForward decl
brain [Wed, 31 Oct 2007 19:37:07 +0000 (19:37 +0000)]
Forward decl

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

16 years agoRemove all the OnAddGLine, OnAddWhateverLine replace with one simple OnAddLine and...
brain [Wed, 31 Oct 2007 19:36:38 +0000 (19:36 +0000)]
Remove all the OnAddGLine, OnAddWhateverLine replace with one simple OnAddLine and a OnDelLine which is passed User* (person adding or NULL if its the server) and the XLine

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

16 years agoAdd factories for other types
brain [Wed, 31 Oct 2007 19:31:51 +0000 (19:31 +0000)]
Add factories for other types

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

16 years agoAdd factories for eline and gline as tests
brain [Wed, 31 Oct 2007 19:26:26 +0000 (19:26 +0000)]
Add factories for eline and gline as tests

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

16 years agoImplement: XLineManager::RegisterFactory, UnregisterFactory, GetFactory
brain [Wed, 31 Oct 2007 19:15:12 +0000 (19:15 +0000)]
Implement: XLineManager::RegisterFactory, UnregisterFactory, GetFactory

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

16 years agoAdd XLineFactory stuff.
brain [Wed, 31 Oct 2007 19:03:28 +0000 (19:03 +0000)]
Add XLineFactory stuff.
The idea is, a module or the core can register a class derived from XLineFactory. This class's job is to handle creation of an 'unknown' xline type given xline-specific mask data
(e.g. "*@host*" or any other such text) and a line type, currently char (i DO plan on changing this!!!). This way, spanningtree and friends can create an xline without knowing
its full details just by passing what all xlines share in common and a bit of semi-opaque metadata.

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

16 years agoSpanningtree now compiles
brain [Wed, 31 Oct 2007 18:50:09 +0000 (18:50 +0000)]
Spanningtree now compiles

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

16 years agoThis one too, grr
brain [Wed, 31 Oct 2007 18:06:54 +0000 (18:06 +0000)]
This one too, grr

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

16 years agoBloody hell, just how many modules use this shit
brain [Wed, 31 Oct 2007 17:57:57 +0000 (17:57 +0000)]
Bloody hell, just how many modules use this shit

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

16 years agoMore fixes
brain [Wed, 31 Oct 2007 17:46:57 +0000 (17:46 +0000)]
More fixes

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

16 years agoMake /gline etc compile with new methods
brain [Wed, 31 Oct 2007 17:43:58 +0000 (17:43 +0000)]
Make /gline etc compile with new methods

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

16 years agoMore fixes and some optimizations
brain [Wed, 31 Oct 2007 17:35:21 +0000 (17:35 +0000)]
More fixes and some optimizations

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

16 years agoMore stuff
brain [Wed, 31 Oct 2007 17:30:18 +0000 (17:30 +0000)]
More stuff

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

16 years agoFixified some more
brain [Wed, 31 Oct 2007 17:22:02 +0000 (17:22 +0000)]
Fixified some more

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

16 years agoThe rest doesnt compile yet, dont bother :p
brain [Wed, 31 Oct 2007 17:00:23 +0000 (17:00 +0000)]
The rest doesnt compile yet, dont bother :p

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

16 years agoReorder creation of objects so:
w00t [Wed, 31 Oct 2007 15:53:03 +0000 (15:53 +0000)]
Reorder creation of objects so:
1) they are all done in the same place
2) calling InspIRCd::Exit() early on (before initialising a few things is done) doesn't crash us ;p

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

16 years agoClean up XLine conf stuff a little bit, move most of it to configreader. Also, check...
w00t [Wed, 31 Oct 2007 12:12:30 +0000 (12:12 +0000)]
Clean up XLine conf stuff a little bit, move most of it to configreader. Also, check elines and call ApplyLines on both rehash and startup.

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

16 years agoAdd support for nick@server requested by many. We are not likely to backport this...
brain [Tue, 30 Oct 2007 22:49:46 +0000 (22:49 +0000)]
Add support for nick@server requested by many. We are not likely to backport this, cant actually find reference to it in rfc1459

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

16 years agoA few more timesaving checks.
brain [Mon, 29 Oct 2007 00:37:47 +0000 (00:37 +0000)]
A few more timesaving checks.
The more astute amongst you will have noticed all the Add?Line functions now look practically identical. This paves the way for us to have one generic one, but before we do this
i'd rather have us add an XLine* pointer to it, not a hostmask or something non-generic.

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

16 years agoAdd the lookup_lines stuff. Sorry i havent documented this yet, i am tired.
brain [Mon, 29 Oct 2007 00:35:17 +0000 (00:35 +0000)]
Add the lookup_lines stuff. Sorry i havent documented this yet, i am tired.

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

16 years agoBig fat fixme here
brain [Mon, 29 Oct 2007 00:24:29 +0000 (00:24 +0000)]
Big fat fixme here

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

16 years agoOk, now each xline will be in two places. The sorted vector and a map, each line...
brain [Mon, 29 Oct 2007 00:23:11 +0000 (00:23 +0000)]
Ok, now each xline will be in two places. The sorted vector and a map, each line type having its own map stored in a map of maps. (RTFS when its done)
This allows for faster checking for simple existence of a line for removal/adding without O(n) lookups

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

16 years agoCompile fixes
brain [Mon, 29 Oct 2007 00:18:26 +0000 (00:18 +0000)]
Compile fixes

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

16 years agoThis commit is untested and breaks a lot of xline stuff. work in progress.
brain [Mon, 29 Oct 2007 00:15:10 +0000 (00:15 +0000)]
This commit is untested and breaks a lot of xline stuff. work in progress.

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

16 years agoMake ELines cached, and check for ELined status in all the Matches for all the linety...
w00t [Sun, 28 Oct 2007 21:37:22 +0000 (21:37 +0000)]
Make ELines cached, and check for ELined status in all the Matches for all the linetypes. Brain, SVN up before you overwrite my fixes to bits of this again :P

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

16 years agoUpdate User::exempt all the time we change an E:Line. Brain, can you check I've done...
w00t [Sun, 28 Oct 2007 21:23:07 +0000 (21:23 +0000)]
Update User::exempt all the time we change an E:Line. Brain, can you check I've done this okay, and fix my XXX if you know how? ta.

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

16 years agoYAR!
brain [Sun, 28 Oct 2007 21:20:09 +0000 (21:20 +0000)]
YAR!

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

16 years agoFix it all up, im done with the main bit of this
brain [Sun, 28 Oct 2007 21:17:43 +0000 (21:17 +0000)]
Fix it all up, im done with the main bit of this

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

16 years agoGrr
brain [Sun, 28 Oct 2007 21:17:11 +0000 (21:17 +0000)]
Grr

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

16 years agoAdd Apply and DefaultApply.
brain [Sun, 28 Oct 2007 21:14:41 +0000 (21:14 +0000)]
Add Apply and DefaultApply.

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

16 years agoFixify
w00t [Sun, 28 Oct 2007 21:00:19 +0000 (21:00 +0000)]
Fixify

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

16 years agoRewrite of XLineManager::ApplyLines to only apply pending lines. This ..doesn't seem...
w00t [Sun, 28 Oct 2007 20:59:00 +0000 (20:59 +0000)]
Rewrite of XLineManager::ApplyLines to only apply pending lines. This ..doesn't seem to compile at the moment for me. Not tested, at all.

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

16 years agoI think this is done. Add overloaded Matches() which takes std::string and implement...
brain [Sun, 28 Oct 2007 20:29:53 +0000 (20:29 +0000)]
I think this is done. Add overloaded Matches() which takes std::string and implement it in zline and qline, the rest dont need it

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

16 years agoMove matches_qline to Matches, though this won't work properly .. :s
w00t [Sun, 28 Oct 2007 19:54:36 +0000 (19:54 +0000)]
Move matches_qline to Matches, though this won't work properly .. :s

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

16 years agoMake E:Line/G:Line use the Matches stuff
w00t [Sun, 28 Oct 2007 19:35:58 +0000 (19:35 +0000)]
Make E:Line/G:Line use the Matches stuff

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

16 years agoMake ZLine use Matches()
w00t [Sun, 28 Oct 2007 19:32:23 +0000 (19:32 +0000)]
Make ZLine use Matches()

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

16 years agoFix this to pass a User
w00t [Sun, 28 Oct 2007 19:29:05 +0000 (19:29 +0000)]
Fix this to pass a User

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

16 years agoDone my part
brain [Sun, 28 Oct 2007 19:26:22 +0000 (19:26 +0000)]
Done my part

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

16 years agoAdd a virtual Matches to XLine class, and override it appropriately for all derived...
w00t [Sun, 28 Oct 2007 19:20:44 +0000 (19:20 +0000)]
Add a virtual Matches to XLine class, and override it appropriately for all derived classes. Most still need to be converted to use it, however. This will make ApplyLines change much easier than it is currently ..

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