6912 Commits

Author SHA1 Message Date
w00t
2e27c8a945 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
2007-10-23 10:19:10 +00:00
brain
afdbc67a33 Make this a little more bulletproof
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8309 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 20:16:58 +00:00
brain
af70c67676 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
2007-10-22 20:10:46 +00:00
brain
ab6a7318e3 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
2007-10-22 19:53:23 +00:00
brain
6ded0e838f Big obvious comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8306 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 18:29:23 +00:00
brain
8e5bd0e5d6 Comment all this, and tweak it a little
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8305 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 18:25:37 +00:00
brain
4fd09d8d67 *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
2007-10-22 18:13:45 +00:00
brain
9894366fc5 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
2007-10-22 16:13:13 +00:00
brain
6fdf2efb2e 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
2007-10-22 15:54:47 +00:00
w00t
aef2031c6b 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
2007-10-22 15:12:58 +00:00
w00t
8691870bf7 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
2007-10-22 15:01:15 +00:00
w00t
5d5285f24b 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
2007-10-22 14:13:48 +00:00
w00t
4cc6e5e14f Move InspIRCd::IsValidMask() to helperfuncs.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8298 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 10:14:18 +00:00
brain
9ceab65fb2 No penalty here!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8297 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 23:52:24 +00:00
brain
766b24dd10 Fix bug #442
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8295 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 23:41:46 +00:00
brain
4b39f11a26 Oops, checked wrong var :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8294 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 22:07:01 +00:00
brain
ab9a1cd1ff 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
2007-10-21 22:02:07 +00:00
w00t
b669f920ea 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
2007-10-21 21:43:48 +00:00
w00t
8d1af47d02 3 second penalty to CYCLE.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8286 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 21:15:54 +00:00
w00t
496a38c28c Update/clarify a comment a bit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8281 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 20:27:44 +00:00
w00t
665ae74f2a Tidy up some DNS stuff more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8280 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 20:22:21 +00:00
w00t
af739bfa5f 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
2007-10-21 20:09:52 +00:00
brain
f561b32be2 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
2007-10-21 19:41:34 +00:00
w00t
aa3dc8c472 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
2007-10-21 19:30:57 +00:00
w00t
50fed3e9a6 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
2007-10-21 19:26:24 +00:00
brain
0c04ea89db Set these back to sane operation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8271 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 19:24:09 +00:00
brain
32bffd861f 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
2007-10-21 19:09:59 +00:00
brain
1e29b89731 Remove more debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8268 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 19:07:23 +00:00
brain
2fd3db6bac Remove debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8267 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 19:07:06 +00:00
brain
9ecfbdd8c0 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
2007-10-21 18:08:48 +00:00
w00t
e3ffe49bbe 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
2007-10-21 18:05:22 +00:00
w00t
cef3b99425 Add User::IncreasePenalty() and User::DecreasePenalty()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8264 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 18:01:24 +00:00
brain
52a8a6d2bd 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
2007-10-21 17:59:08 +00:00
brain
1afe64600c Set penalties (documentation page listing these to come)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8262 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 17:26:46 +00:00
brain
1106ed5571 This now sets User::ExemptFromPenalty too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8261 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 17:21:03 +00:00
brain
f90bbd3813 Don't penalize any of the SA commands
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8260 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 16:19:41 +00:00
brain
a8bfe53cd4 Don't penalise /kill and /*line
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8259 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 16:18:32 +00:00
w00t
ce8eba7d4b Don't penalise PING/PONG
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8258 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:56:38 +00:00
w00t
ff8f998b2b Add penalties for WHO, INVITE, LIST, JOIN, PART.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8257 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:51:59 +00:00
brain
710689b2c4 Add penalty to /commands as extra parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8256 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:51:10 +00:00
brain
ed2ca79021 Add the check for user->ExemptFromPenalty
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8255 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:33:14 +00:00
brain
2311a4b6f7 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
2007-10-21 14:30:58 +00:00
brain
773afbfe3b 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
2007-10-21 14:26:25 +00:00
brain
56787e7dae 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
2007-10-21 14:25:25 +00:00
brain
317c0288c8 Yay, all works!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8251 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:18:43 +00:00
brain
6856c87ae5 *untested* command buffering/penalty
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8250 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:08:13 +00:00
w00t
fd37f4ba0e CHange Penalty to be set in constructor, and to default to 1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8249 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:58:01 +00:00
brain
5471a3d5f7 Dont forget to initialize the new value
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8248 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:56:44 +00:00
brain
d345d7c9aa In class User:
/** If this bool is set then penalty rules do not apply to this user
         */
        bool ExemptFromPenalty;


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8247 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:54:02 +00:00
brain
b80d1be349 Penalty should be 'const int'. Note, you can set a const in the constructors init-list, see line 109
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8246 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:52:42 +00:00