6945 Commits

Author SHA1 Message Date
brain
acee8cf888 Whoops forgot this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8345 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-24 16:04:09 +00:00
brain
5b329bf110 Obnoxious -pedantic warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8344 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-24 15:51:08 +00:00
brain
fa04fb00cf Try this w00t, compiles, test running now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8343 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-24 15:48:00 +00:00
w00t
5d6d076cc3 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
2007-10-24 15:12:10 +00:00
brain
beedfa3ce6 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
2007-10-24 15:07:24 +00:00
w00t
5b80dc83fd 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
2007-10-23 23:54:24 +00:00
w00t
c43805606f 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
2007-10-23 23:31:40 +00:00
w00t
0b98824cc5 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
2007-10-23 23:25:49 +00:00
w00t
bbb7c9eec5 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
2007-10-23 23:07:24 +00:00
brain
532bf47678 Make clean should clean the socketengine objects
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8335 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:41:14 +00:00
brain
308314fc31 Windows socket engine tweaks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8334 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:35:36 +00:00
brain
541b12871a Windows socket engine tweaks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8333 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:34:58 +00:00
brain
cbb8fda4a7 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
2007-10-23 22:30:25 +00:00
brain
71e400674f -Wall is still required, too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8331 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:10:18 +00:00
brain
bfa8e627a1 -W -> -Wextra
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8330 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:08:57 +00:00
brain
1db092e08e 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
2007-10-23 22:07:47 +00:00
brain
c8389f594d 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
2007-10-23 21:50:09 +00:00
brain
89a2c99405 Needs a bit more again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8327 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:43:54 +00:00
brain
f34b16edd7 And fix it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8326 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:39:10 +00:00
brain
cd9b790e48 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
2007-10-23 21:36:33 +00:00
brain
6720b7bccb Visual studio doesnt like throw definitions like this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8324 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:05:01 +00:00
brain
2e1f86fd0c 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
2007-10-23 21:00:35 +00:00
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