7443 Commits

Author SHA1 Message Date
brain
2c19e69e47 This still doesnt work :(
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8744 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-21 11:34:01 +00:00
brain
1da94fa276 Win32 compilation fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8743 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-21 11:16:36 +00:00
aquanight
5a5d59a791 Update m_filter* to 1.2 API (it was still using Implements()), also implement <exemptfromfilter channel="#blah"> to exclude channels from filtering.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8742 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-20 01:42:29 +00:00
brain
586c3cae3d Extra sanity checks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8741 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 18:50:43 +00:00
brain
789506bf30 Fix freebsd glitches
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8740 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 18:44:20 +00:00
aquanight
d13cd5ca80 Add ./configure --list-extras, --enable-extras, and --disable-extras
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8739 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 17:33:13 +00:00
aquanight
b3fc1e9af2 Fix m_callerid not adding the usermode.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8738 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 17:30:32 +00:00
aquanight
37283ce7b3 Modules using NoPedantic now properly respect 'make debug'.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8737 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 16:58:18 +00:00
w00t
c9a61d686d Add aquanight to developers section
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8736 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 16:36:22 +00:00
w00t
59fb8371b7 Initial implementation of callerid, provided by aquanight. Untested as of yet. Probably could use a little of the /watch love to speed up removals in the future.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8735 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 15:58:12 +00:00
w00t
3bbfbc1e07 And another tiny one
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8734 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 01:26:14 +00:00
w00t
17afa4f05a Patch from aquanight to fix a problem introduced with some of the recent tidyups.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8733 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 01:22:28 +00:00
w00t
ece985ccb3 Remove a redundant method here, call the mode manager directly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8732 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 23:40:18 +00:00
brain
207af6fb2f Aquanight's configure strict/fatal warnings patch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8731 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 21:36:02 +00:00
brain
89fffcee88 The outer if (socket > -1) check in AddClient is obsolete and this is already checked in socket.cpp. We can remove and just have the inner check.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8730 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 16:40:17 +00:00
w00t
4426a2fc44 Fix.. snomask O is already taken (ffs) so use A instead
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8729 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 15:54:33 +00:00
w00t
94afde43b0 Remove InspIRCd::WriteOpers in favour of snomask O
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8728 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 13:07:49 +00:00
w00t
932e069f28 Start converting WriteOpers calls into snomask 'O' -- generic oper notices.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8727 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 12:29:33 +00:00
w00t
1e5728d84c Move a number of methods from class InspIRCd to class UserManager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8726 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 12:17:09 +00:00
w00t
bf77b312c8 Add logger.(cpp|h), will eventually hold implementation of logging manager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8725 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 12:02:22 +00:00
w00t
05bd4c0a51 Make default bancache time one day. This may seem long, but as XLines expire, so will the bancache entries, so it'll be fine.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8724 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 21:45:50 +00:00
w00t
4b122677df Add an overridden AddHit to BanCacheManager, allowing the expiry time to be set.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8723 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 21:43:03 +00:00
brain
f50ae8b4ca Make the sid exception message more descriptive so a user knows what a valid SID is
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8722 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 21:42:42 +00:00
w00t
b979bc4674 Validate <server:id> on startup if provided, thx Brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8721 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 21:36:07 +00:00
w00t
c28e8dc34a Add a warning about quitting a user twice, and fix a minor brainfart
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8718 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 16:23:43 +00:00
w00t
af9d361737 Remove an O(log n) in favour of an O(1) operation, and tidy up culllist some more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8717 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 16:19:57 +00:00
w00t
72fe978b29 Two stage commit: don't set user->muted except in QuitUser (duplicate setting), also, change muted to drop all socket operations instead of just not reading the user's buffer if muted is set (no point wasting time - they're going away). Also revert culllist back to once per mainloop iteration now it is much cheaper than previously.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8716 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 09:14:23 +00:00
w00t
32026e5b6f Re-add support for silent quits (note: we also remove an O(n) doing it this way)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8715 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 08:55:18 +00:00
w00t
1963fba97f Hacked-up culllist: stores user pointers rather than CullItem, as creating them seems to be very expensive and wasteful. Doesn't support silent quits (yet), and User::QuitUser seems to trigger *many* times per user before they are removed (socketengine getting write events to closed socket perhaps). It's still much quicker than the old way (NO perceptible lag AT ALL :))
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8714 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 07:59:09 +00:00
brain
b7a990e474 Someone forgot to delete what they new :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8713 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-15 16:12:39 +00:00
w00t
f059ceea21 CullList -> CullItem *
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8712 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-15 16:06:35 +00:00
w00t
2cd906702d CullList: Don't try quit everyone. Speed/resource use enhancement on netsplits..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8711 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-15 15:32:22 +00:00
w00t
130f5c44d7 Fix a stupid crash on unknown commands caused by me blindly applying a 1.1 patch.. doesn't affect 1.1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8710 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-15 14:32:52 +00:00
w00t
d558e37d37 IPv6 fix, thanks to danieldg. Doesn't affect 1.1.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8709 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-14 23:40:16 +00:00
w00t
c88afe5b9a New timer code. This may be a tiny fraction slower (though I think it will be acceptable given that we no longer need to tick old timers etc), but it is a lot simpler (about half the codesize of the old + no allocation of new timergroups etc), and should (I hope) always tick timers and never 'lose' them. Performs okay under 3500 connection attempts (0:00 CPU time :))
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8708 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13 21:29:53 +00:00
w00t
2620d1258c Undo my constructor playing, I'm pretty sure it will break stuff. This will require thinkings.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8707 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13 19:45:28 +00:00
w00t
de6bba7882 Move User::AddClient to UserManager::AddClient. WARNING: I assure you this is currently WRONG as I was playing with moving a few bits to the constructor.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8706 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13 03:51:04 +00:00
w00t
2192a9f58a First UserManager overhaul: Move clone counts out of InspIRCd & User.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8705 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13 03:37:25 +00:00
w00t
f56b7d5e86 Add a channel manager class while I'm at it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8704 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13 03:10:30 +00:00
w00t
61e944f9fd Feh. Remember the header too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8703 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13 02:59:06 +00:00
w00t
f96eeeddab Add usermanager.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8702 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13 02:57:09 +00:00
w00t
fad966254b I think (and Brain concurs) that B for blockcaps and P for permanent make a lot more sense, so 1.2 blockcaps gets mode B.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8701 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13 00:40:23 +00:00
w00t
4b1359148d Document <goodchan>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8697 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 22:45:51 +00:00
w00t
a433607124 Add goodchan tags for m_denychans: Allows the use case of forbidding *warez*, and allowing #thisreallyisntwarez, or whatever.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8696 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 22:43:10 +00:00
w00t
e4acbc95b8 Header update: 2007 -> 2008
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 13:27:07 +00:00
w00t
e91eea9173 Erase their quit count on banning (so they get another 10 or whatever attempts, and not banned instantly on one quit after that ;p)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8693 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 13:20:37 +00:00
w00t
51a610ae06 Add m_quitban: Bans IPs that connect/disconnect more than X times per 3600 seconds for a configurable duration. Default is 10 quits, 10 minute ban.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8692 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 13:15:22 +00:00
w00t
1b4c004701 Document <options:prefixpart|suffixpart|fixedpart>. Set prefixpart and suffixpart to default to double quote.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 11:49:15 +00:00
w00t
84083a73e8 Implement <options:prefixpart|suffixpart|fixedpart>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8690 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 11:47:15 +00:00
w00t
e3a4d6113d Add optional SAPART reason. No prefixing done yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8689 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 11:16:17 +00:00