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
brain
786093b751
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
2007-11-02 12:35:18 +00:00
brain
bc6c0898c5
Installer that packages none of the extra/ modules
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-02 10:52:49 +00:00
brain
9c02aff3e4
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
2007-11-01 18:19:54 +00:00
w00t
5c5f62bdcc
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
2007-11-01 15:19:59 +00:00
w00t
5a13b1834b
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
2007-11-01 15:15:52 +00:00
brain
ccb5d63ae7
Make it compilable :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8451 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-31 22:17:17 +00:00
brain
5315db41ad
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
2007-10-31 22:16:42 +00:00
brain
6236cf5891
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
2007-10-31 22:15:03 +00:00
brain
4e5bd889d9
Fix (?) stats chars
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8448 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-31 22:00:25 +00:00
brain
0ade30b8bc
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
2007-10-31 21:43:56 +00:00
brain
a60b8e0d56
More debug in here
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8446 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-31 21:09:35 +00:00
brain
78f7265d8d
Start to fix broken expiry
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8445 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-31 20:54:27 +00:00
brain
6d55471b67
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
2007-10-31 20:14:52 +00:00
brain
6c72a0cf58
Make it all compile.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8443 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-31 20:10:29 +00:00
brain
c45fe6715d
Fix up to pass User*
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8442 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-31 19:51:03 +00:00