brain
7240c926c8
More
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8322 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 20:52:27 +00:00
brain
a85c986c04
More AddModes fixes
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8321 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 20:48:04 +00:00
brain
0e7fabc4b1
Some AddMode fixes
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8320 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 20:47:06 +00:00
brain
352eb2b29f
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
2007-10-23 20:45:09 +00:00
brain
a78e985b88
More pedantic safety
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8318 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 20:29:00 +00:00
brain
4be79b1630
Pedantic safe
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8317 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 20:09:58 +00:00
brain
08e3151057
pedantic safe
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8316 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 19:55:47 +00:00
brain
7a10fd1b5c
Pedantic safe
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8315 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 19:48:28 +00:00
brain
d3c7457dda
Pedantic safe
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8314 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 19:46:47 +00:00
brain
18b1ec5080
-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
2007-10-23 19:28:41 +00:00
brain
e281922d55
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
2007-10-23 16:42:03 +00:00
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