]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
brain [Thu, 25 Oct 2007 21:21:13 +0000 (21:21 +0000)]
Document connect:limit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8368
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 21:07:15 +0000 (21:07 +0000)]
I was wrong its in one place :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8367
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 21:05:58 +0000 (21:05 +0000)]
Tidy up
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8366
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 21:03:50 +0000 (21:03 +0000)]
More dots!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8365
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 21:00:53 +0000 (21:00 +0000)]
Take out craq i forgot
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8364
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 20:56:14 +0000 (20:56 +0000)]
Forgot these two lines that prevent duplicate make install/deinstall lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8363
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 20:51:58 +0000 (20:51 +0000)]
Make install list list automatically generated from build targets and provide facility for installing extra files.
Using this, cert.pem and key.pem are only copied to the conf dir if you enabled an ssl module.
Also, this provides facility for a 'make deinstall' which should be safe for use in all situations as it always specifies a file by name and never uses wildcards to rm.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8362
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 19:57:30 +0000 (19:57 +0000)]
Errr, who did this? :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8361
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 15:55:26 +0000 (15:55 +0000)]
If the connect:limit is 0, dont deny connections for going over it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8360
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Thu, 25 Oct 2007 15:45:35 +0000 (15:45 +0000)]
Brain, look at this pls :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8359
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 25 Oct 2007 15:25:32 +0000 (15:25 +0000)]
this should fix any of the crashes w00t outlined where User::MyClass == NULL.
The simplest fix seems to be that if the user has no class, skip all the code that uses the class values.
This makes sense because the only situation where User::MyClass == NULL is when they arent authorised to connect and are being quit so checking flood levels and max sendq etc are irrelevent.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8358
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Wed, 24 Oct 2007 22:52:51 +0000 (22:52 +0000)]
Implement <connect:limit> - limits how many clients can sit inside a <connect> tag. Brain, we have a problem here in that if we User::QuitUser() a user with a NULL MyClass member (connect class), then things break (like sendq et al). What should we do with this, create a generic catchall class or something just in case? (to replicate, set up a single connect class with a low limit, and connect too many clients. Crash is the result)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8357
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Wed, 24 Oct 2007 19:16:40 +0000 (19:16 +0000)]
Remove that goto, capt'n
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8356
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Wed, 24 Oct 2007 19:12:45 +0000 (19:12 +0000)]
Disable all connect classes, reenable them as we find them in the config. This stops users using a connect class removed from the conf (or will in a second)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8355
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Wed, 24 Oct 2007 18:56:24 +0000 (18:56 +0000)]
Finish reference counting connect class stuff. Now rehash removes unused classes (refcount == 0), and re-reads any new shit (or ones that just got removed) from the config.
Possibly todo in the future: make /rehash update classes that exist in memory, make /rehash mark classes removed from conf (but still exist as refcount > 0) as inactive.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8354
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 18:45:17 +0000 (18:45 +0000)]
Remove variadic macros from sqlv2 api, removing the warnings that come with it and increasing compatibility
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8353
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 18:12:24 +0000 (18:12 +0000)]
Last of the -pedantic fixes. Seems we were all good with -pedantic from the start :) Just seemed that -Wall -Wextra enables moron warnings.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8352
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 18:09:18 +0000 (18:09 +0000)]
Tidyups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8351
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 18:05:44 +0000 (18:05 +0000)]
Pedantic safety
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8350
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 18:03:36 +0000 (18:03 +0000)]
Pedantic clean
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8349
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 17:46:57 +0000 (17:46 +0000)]
-pedantic good, -Wextra bad. read g++ manpage :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8348
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 16:54:44 +0000 (16:54 +0000)]
/usr/local/include/openssl/pqueue.h:73: error: ISO C++ does not support `long long'
/usr/local/include/openssl/pqueue.h:80: error: ISO C++ does not support `long long'
/usr/local/include/openssl/pqueue.h:89: error: ISO C++ does not support `long long'
^^ openssl broken too, set $NoPedantic
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8347
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 16:08:29 +0000 (16:08 +0000)]
Some constructors dont initialize the refcount, namely, the one thats usually called :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8346
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 16:04:09 +0000 (16:04 +0000)]
Whoops forgot this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8345
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 15:51:08 +0000 (15:51 +0000)]
Obnoxious -pedantic warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8344
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 15:48:00 +0000 (15:48 +0000)]
Try this w00t, compiles, test running now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8343
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Wed, 24 Oct 2007 15:12:10 +0000 (15:12 +0000)]
Start of refcount-based rehash stuff for <connect> tags, this is broken and rather ugly right now..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8342
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 24 Oct 2007 15:07:24 +0000 (15:07 +0000)]
Theres no need to check the address of a stack declared array for NULL, thanks darix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8340
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Tue, 23 Oct 2007 23:54:24 +0000 (23:54 +0000)]
Move some stuff from using userrec cached stuff to using stuff in the connect classes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8339
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Tue, 23 Oct 2007 23:31:40 +0000 (23:31 +0000)]
Fix a bug before I even started this.. don't let User::SetClass() decrease the reference count if we cannot find the new class to plop them into, that will nark things up nicely..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8338
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Tue, 23 Oct 2007 23:25:49 +0000 (23:25 +0000)]
Some more class stuff, blah. Now possible to move a user to a different class via User::SetClass(), which cmd_oper uses. GetClass() is now just a wrapper around User::MyClass. User::CheckClass() does not support any parameters anymore, nor does User::GetClass().. I think I have this all right ;p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8337
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Tue, 23 Oct 2007 23:07:24 +0000 (23:07 +0000)]
Some initial work towards tying <connect> classes to user accounts. This will (in the longer term) allow for things like limits on how many users can fit in a <connect> for 1.2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8336
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 22:41:14 +0000 (22:41 +0000)]
Make clean should clean the socketengine objects
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8335
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 22:35:36 +0000 (22:35 +0000)]
Windows socket engine tweaks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8334
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 22:34:58 +0000 (22:34 +0000)]
Windows socket engine tweaks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8333
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 22:30:25 +0000 (22:30 +0000)]
Move socketengines into their own dir. This was all w00t's idea, but i told him no because i didnt think it would work. Now ive done it myself :P ner ner ne ner ner :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8332
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 22:10:18 +0000 (22:10 +0000)]
-Wall is still required, too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8331
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 22:08:57 +0000 (22:08 +0000)]
-W -> -Wextra
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8330
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 22:07:47 +0000 (22:07 +0000)]
This now works properly with $NoPedantic macro.
Question: where did all the 'unused parameter' warnings vanish to???
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8329
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 21:50:09 +0000 (21:50 +0000)]
Roll back to 8323, the -pedantic switch thing totally breaks building the way i implemented it here :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8328
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 21:43:54 +0000 (21:43 +0000)]
Needs a bit more again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8327
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 21:39:10 +0000 (21:39 +0000)]
And fix it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8326
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 21:36:33 +0000 (21:36 +0000)]
Add $NoPedantic build macro, for m_mysql because mysql AB dont know how to code :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8325
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 21:05:01 +0000 (21:05 +0000)]
Visual studio doesnt like throw definitions like this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8324
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 21:00:35 +0000 (21:00 +0000)]
All of insp now builds with -pedantic (theres some warnings to squash in modules, and in spanningtree, but its all 'unused parameter').
I suggest we actually go through and satisfy these unused parameter errors for two reasons:
(1) it acts as a strong compiler hint leading to better optimization
(2) it will give us a good clue of what parameters are NEVER used and should therefore be removed from use (like i just did with AddMode)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8323
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 20:52:27 +0000 (20:52 +0000)]
More
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8322
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 20:48:04 +0000 (20:48 +0000)]
More AddModes fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8321
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 20:47:06 +0000 (20:47 +0000)]
Some AddMode fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8320
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 20:45:09 +0000 (20:45 +0000)]
All the core is now pedantic safe!
NOTE: I changed ModeHandler removing a redundant param. Devs, if you find stuff that doesnt compile, change AddMode(handler, 'l') to AddMode(handler); and it will :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8319
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 20:29:00 +0000 (20:29 +0000)]
More pedantic safety
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8318
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 20:09:58 +0000 (20:09 +0000)]
Pedantic safe
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8317
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 19:55:47 +0000 (19:55 +0000)]
pedantic safe
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8316
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 19:48:28 +0000 (19:48 +0000)]
Pedantic safe
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8315
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 19:46:47 +0000 (19:46 +0000)]
Pedantic safe
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8314
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 19:28:41 +0000 (19:28 +0000)]
-pedantic tidyups, lets see if it finds anything worthy of a fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8313
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 23 Oct 2007 16:42:03 +0000 (16:42 +0000)]
Auto generate the install list, no more need to insert it into the .makefile.inc for it to be part of make install
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8312
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Tue, 23 Oct 2007 10:19:10 +0000 (10:19 +0000)]
Oops: Fix one version of overrided match() always being case sensitive..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8310
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 22 Oct 2007 20:16:58 +0000 (20:16 +0000)]
Make this a little more bulletproof
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8309
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 22 Oct 2007 20:10:46 +0000 (20:10 +0000)]
Conditionals in the buildsystem language allowing for checking of configure flags:
/* $If: USE_KQUEUE */
/* $ExtraSources: socketengine_kqueue.cpp */
/* $ExtraObjects: socketengine_kqueue.o */
/* $EndIf */
This is used exactly where the example dictates: to pick a socket engine from the socketengine.cpp.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8308
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 22 Oct 2007 19:53:23 +0000 (19:53 +0000)]
Remove the need for a bunch of the hard coded arrays/hashes by scanning the src/ dir for tag comments, like in modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8307
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 22 Oct 2007 18:29:23 +0000 (18:29 +0000)]
Big obvious comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8306
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 22 Oct 2007 18:25:37 +0000 (18:25 +0000)]
Comment all this, and tweak it a little
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8305
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 22 Oct 2007 18:13:45 +0000 (18:13 +0000)]
*POSSIBLE BREAKAGE WARNING* new (currently undocumented) buildsystem that builds an operating system specific makefile from a set of hashes/arrays in configure that are OS independent
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8304
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 22 Oct 2007 16:13:13 +0000 (16:13 +0000)]
Failed attempt to embed an icon (microsofts help sucks)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8303
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 22 Oct 2007 15:54:47 +0000 (15:54 +0000)]
Fix build system to work with where w00t hid the command files :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8302
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Mon, 22 Oct 2007 15:12:58 +0000 (15:12 +0000)]
Fix this from an experiment I was playing with :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8301
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Mon, 22 Oct 2007 15:01:15 +0000 (15:01 +0000)]
Remove a wrapper, it's easy to read as is :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8300
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Mon, 22 Oct 2007 14:13:48 +0000 (14:13 +0000)]
Move cmd_*.cpp to src/commands/. Not done in the nicest of ways yet, but ah well :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8299
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Mon, 22 Oct 2007 10:14:18 +0000 (10:14 +0000)]
Move InspIRCd::IsValidMask() to helperfuncs.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8298
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 23:52:24 +0000 (23:52 +0000)]
No penalty here!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8297
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 23:41:46 +0000 (23:41 +0000)]
Fix bug #442
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8295
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 22:07:01 +0000 (22:07 +0000)]
Oops, checked wrong var :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8294
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 22:02:07 +0000 (22:02 +0000)]
This works, not sure why. Someone find out why we cant use && !isock->HasResult() here? :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8293
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 21:43:48 +0000 (21:43 +0000)]
Another big commit, just to please all my fans out there.. cmd_* -> Command*. Muahaha.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8290
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 21:15:54 +0000 (21:15 +0000)]
3 second penalty to CYCLE.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8286
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 20:27:44 +0000 (20:27 +0000)]
Update/clarify a comment a bit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8281
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 20:22:21 +0000 (20:22 +0000)]
Tidy up some DNS stuff more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8280
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 20:09:52 +0000 (20:09 +0000)]
Move DNS timeouts into the UserResolver class, where they should have been (but seems to have been overlooked due to the relics of 1.0). This simplifies some stuff :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8278
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 19:41:34 +0000 (19:41 +0000)]
Minor tweak to avoid a storm of redundant read events. This isnt the fix, i dont think, but its needed anyway
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8276
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 19:30:57 +0000 (19:30 +0000)]
Tidy up this windows ifdef. Still not sure why it's needed at all, but okay..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8273
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 19:26:24 +0000 (19:26 +0000)]
We bloated. We're 5 lines now, not 4. :(
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8272
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 19:24:09 +0000 (19:24 +0000)]
Set these back to sane operation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8271
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 19:09:59 +0000 (19:09 +0000)]
Change how the socket engines work when you addfd on an fd that already exists.
the only SANE outcome is that youve forgotten to DelFd, so it does this for you.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8269
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 19:07:23 +0000 (19:07 +0000)]
Remove more debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8268
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 19:07:06 +0000 (19:07 +0000)]
Remove debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8267
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 18:08:48 +0000 (18:08 +0000)]
Use the new IncreasePenalty rather than directly using += on the Penalty value.
Maybe the penalty value should be private and there should be an accessor, GetPenalty()?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8266
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 18:05:22 +0000 (18:05 +0000)]
Add a 10 second penalty on failed oper-up. This may seem a little extreme, but people shouldn't be failing anyway, so I think this is a legitimate thing to do. Helps prevent brute-forcing of oper logins.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8265
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 18:01:24 +0000 (18:01 +0000)]
Add User::IncreasePenalty() and User::DecreasePenalty()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8264
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 17:59:08 +0000 (17:59 +0000)]
Fixed ssl clients on trunk. The problem peavey was having was that before ReadBuffer was char[] now its char*. sizeof() on char[] returns its size in chars, and sizeof on char* returns 4. :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8263
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 17:26:46 +0000 (17:26 +0000)]
Set penalties (documentation page listing these to come)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8262
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 17:21:03 +0000 (17:21 +0000)]
This now sets User::ExemptFromPenalty too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8261
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 16:19:41 +0000 (16:19 +0000)]
Don't penalize any of the SA commands
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8260
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 16:18:32 +0000 (16:18 +0000)]
Don't penalise /kill and /*line
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8259
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 14:56:38 +0000 (14:56 +0000)]
Don't penalise PING/PONG
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8258
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sun, 21 Oct 2007 14:51:59 +0000 (14:51 +0000)]
Add penalties for WHO, INVITE, LIST, JOIN, PART.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8257
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 14:51:10 +0000 (14:51 +0000)]
Add penalty to /commands as extra parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8256
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 14:33:14 +0000 (14:33 +0000)]
Add the check for user->ExemptFromPenalty
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8255
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 14:30:58 +0000 (14:30 +0000)]
Move some stuff around so the last penalty line doesnt get held erroneously until data arrives again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8254
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 14:26:25 +0000 (14:26 +0000)]
Set cmd_nick to have a penalty of 3
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8253
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 21 Oct 2007 14:25:25 +0000 (14:25 +0000)]
Tweak so that commands with larger penalty than 1 work right
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8252
e03df62e -2008-0410-955e-
edbf42e46eb7