7199 Commits

Author SHA1 Message Date
brain
e1efa862f3 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
2007-11-04 19:28:22 +00:00
brain
7fe5347210 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
2007-11-04 19:12:55 +00:00
brain
8923de4c4f 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
2007-11-04 18:37:14 +00:00
brain
cadc11999e 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
2007-11-04 18:30:43 +00:00
brain
c08446c3ab Extra debug logging
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8509 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 17:12:00 +00:00
brain
6fe38c14c1 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
2007-11-04 16:55:45 +00:00
brain
9b131bef32 More craq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8507 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 16:50:50 +00:00
brain
f6bd92ab87 Again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8506 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 16:38:14 +00:00
brain
aaf4373299 Another too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8505 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 16:35:34 +00:00
brain
b65abfdc1a Another
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8504 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 16:33:54 +00:00
brain
91876870c8 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
2007-11-04 16:32:18 +00:00
brain
419f45ad54 Whoops and make it valid
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8502 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 16:27:24 +00:00
brain
25df845b90 Fix this one too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8501 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 16:26:46 +00:00
brain
2282f5c9f5 Fix this to compile
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8500 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 16:24:43 +00:00
brain
02ce802257 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
2007-11-04 16:23:06 +00:00
brain
2facf72164 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
2007-11-04 15:39:06 +00:00
brain
bf44023d11 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
2007-11-04 15:29:49 +00:00
brain
c0abad9948 Add EventHandlers structure for Development/Hooking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8496 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 15:06:21 +00:00
brain
7ae7ccb556 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
2007-11-04 14:18:42 +00:00
w00t
f39ed76432 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
2007-11-04 13:47:52 +00:00
w00t
5a5d25304c 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
2007-11-04 13:44:26 +00:00
w00t
9f936a7830 Instantiate BanCache in InspIRCd class.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8491 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 13:23:15 +00:00
brain
cce3669a3a Make bancache compile on windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8490 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 11:04:03 +00:00
brain
69e5a4bae9 Add bancache.* to windows projects
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8489 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 10:55:49 +00:00
brain
5434e946ee 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
2007-11-04 00:54:07 +00:00
w00t
ae888e9cf9 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
2007-11-04 00:44:28 +00:00
brain
4d85db12ae 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
2007-11-03 22:56:40 +00:00
brain
98d5ac1394 Remove needless headers from typedefs.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8485 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 22:55:14 +00:00
w00t
b104fdfe8a This won't work yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8484 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 22:53:51 +00:00
w00t
841dc636d1 Add bancache.coo/h. Nothing in them, yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8483 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 21:19:39 +00:00
brain
ac3575b299 Final part of bug #441 fix (trunk)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8482 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 19:59:18 +00:00
brain
3593e33ce3 Partial fix for bug #441
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8479 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 19:55:04 +00:00
brain
1ccb806885 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
2007-11-03 19:48:58 +00:00
brain
4bd6bbfebc 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
2007-11-03 18:09:26 +00:00
brain
335a65f418 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
2007-11-03 16:14:29 +00:00
brain
85a79e990d 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
2007-11-02 21:27:01 +00:00
brain
a0defce6dc 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
2007-11-02 21:02:40 +00:00
brain
dccee96be2 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
2007-11-02 20:30:55 +00:00
brain
4085aeb86f Dont propogate K-lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8469 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-02 20:17:21 +00:00
brain
8d395f8c46 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
2007-11-02 20:13:10 +00:00
brain
f2b187052b Comment documentation for all the new shizzle
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8467 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-02 16:36:11 +00:00
brain
e19d04eb39 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
2007-11-02 16:14:31 +00:00
brain
f11df04688 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
2007-11-02 15:58:46 +00:00
brain
ebbc4b3d54 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
2007-11-02 15:52:34 +00:00
brain
6c025fcb9e 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
2007-11-02 15:22:23 +00:00
brain
5943ae1193 Whoops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8462 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-02 14:04:11 +00:00
brain
17a80c5a8e 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
2007-11-02 14:01:55 +00:00
brain
5028040d96 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
2007-11-02 13:46:51 +00:00
brain
5ecd5447d0 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
2007-11-02 13:45:02 +00:00
brain
68b55aa455 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
2007-11-02 12:51:22 +00:00