7483 Commits

Author SHA1 Message Date
brain
dd36852a52 Wheee, mass commit! this adds const stafety, throwing a compile error if anyone does: "parameters[n] = blahvar;" in a command handler etc. where they REALLY SHOULD NOT fuck with the value and should
copy the pointer.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8971 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-20 19:07:07 +00:00
brain
5509c602cb Seems trivial now, looking at it. Still to test then will commit to trunk.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8969 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-20 18:08:08 +00:00
brain
2574b4118d A module looks left out?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8968 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-18 18:26:26 +00:00
brain
d610a29e31 Change defaults to ones that match our stable build
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8967 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-18 18:12:12 +00:00
w00t
e21ee18e62 Phew. Fix a bunch of method sigs to stop warnings.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8966 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-18 17:37:35 +00:00
brain
415a2576ef Fix this first, as this actually has use of the new parameter same as cmode_b.cpp does
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8965 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-18 17:03:45 +00:00
brain
32a26fa539 Someone please help me fix the warnings in modules caused by this change. All mode handler OnMode events, ModeWatcher::BeforeMode/AfterMode, plus OnRawMode now have a bool servermode parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8964 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-18 16:55:27 +00:00
brain
3ca314bffc Merge in patch by Darom that fixes race condition when unloading m_mysql.so that may cause it to crash, fixes bug #438
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8963 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-18 15:25:54 +00:00
brain
baa907dc70 This is all just odd. what can we expect?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8960 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-17 22:56:29 +00:00
aquanight
e3df3b9d26 Implement logtype exclusion (ie: '* -USERINPUT -USEROUTPUT' to mean everything except USER{INPUT,OUTPUT}), also pretty up and expand on the documentation in LogManager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8959 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-17 19:09:03 +00:00
w00t
36bccc5700 Add some docs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8958 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-17 14:37:34 +00:00
aquanight
4507fa2302 Make log targets in config space-seperated (ie: 'USERINPUT USEROUTPUT') like the rest of the config, instead of comma-seperated
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8957 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-17 14:16:02 +00:00
brain
a95e3a9e0b w00t pointed out it needs doing here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8952 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-17 00:27:34 +00:00
brain
8dcc694bb1 I gots a better fix :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8951 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-17 00:26:15 +00:00
brain
f55e56f44a Add empty testcase.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8950 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-17 00:08:05 +00:00
brain
3301091db6 Seperate USERIO into USERINPUT and USEROUTPUT
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8949 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-17 00:05:02 +00:00
w00t
531e67935e Backport SendXLines() fix on netburst (don't buffer loads of lines at once), and fix: don't propegate K:Lines on netburst
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8948 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-16 21:36:35 +00:00
w00t
177f5c59c4 Patch by dz avoiding <badchan:redirect> loops, and tidying up on-rehash checks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8947 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-16 13:29:56 +00:00
aquanight
01f9e889ca Merge warning about InspIRCd::Log()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8945 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-15 21:00:33 +00:00
aquanight
11f1f2126c Make -nofork work properly with logging now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8944 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-15 13:30:46 +00:00
brain
7bd02d8a5d Change string for Om <3
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8943 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 19:33:14 +00:00
brain
60aefe2290 Make AC_OTHERMODE OnAccessCheck call work again.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8942 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 19:32:48 +00:00
brain
e088bb55fc If the mode defined by the handler is not '\0', but the handler for it
cannot be found, they probably dont have the right module loaded to implement
the prefix they want to compare the mode against, e.g. '&' for m_chanprotect.
Revert to checking against the minimum core prefix, '%'.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8941 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 19:12:44 +00:00
brain
a7c5427c73 Reword the failure message to read a little better
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8940 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 19:08:16 +00:00
brain
a4fed1c1c7 Duh, wasnt working when the user had NO prefixes at all!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8939 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 19:04:44 +00:00
brain
38d22d80a4 That was REALLY dumb. Due to a stupid kludge i did, there was duplicate code and the new permissions stuff was only working against modes with params!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8938 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 18:57:59 +00:00
brain
4b53ea8b81 As a final test of this, set the permissions required to set channel mode +h to be '@'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8937 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 18:46:16 +00:00
brain
89f3c09b41 All working now, with any luck
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8936 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 18:44:52 +00:00
brain
91a8894d5d New mode stuff. Note, the framework is now here so that every mode handler can state what prefix is required to execute it. For example: You can say that mode +j needs '%' to execute it, so that
then only a halfop or above can use mode +j. If you put '@' in this member value, only ops and above can use it. The OnRawMode can return ACR_ALLOW on a case by case basis to totally override this 
check against the prefix char. If you return ACR_DEFAULT the check goes ahead.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8935 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 18:24:28 +00:00
brain
1f9b2453f2 Somebody *eyes a certain norwegian wannabe* defined two commands called WATCH... O_o
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8934 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 17:11:34 +00:00
brain
ab4dee91de Keep count of the number of events in total, and seperate read, write and error event counters. We can use this for monitoring of heavy socket engine activity, e.g. a 'stuck' eventhandler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8933 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 16:49:22 +00:00
w00t
f4ddd40bad More OnRawMode fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8932 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 12:03:32 +00:00
w00t
988f8f2a57 Hopefully fix behaviour of OnRawMode
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8931 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 11:52:06 +00:00
om
e11f247c9c Change the Implementation list size from a sizeof which worked by fluke to just having a int constant in source
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8930 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 11:44:36 +00:00
w00t
6a4deb73a9 Fix timer crashes: relying on an iterator after adding to/resorting the vector probably isn't bright
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8929 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 08:21:32 +00:00
aquanight
f995b32ff4 More <log> stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8928 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14 00:43:48 +00:00
brain
0fed3a06d0 Patch provided by danieldg for fixing 3-figure versions in configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8926 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 19:23:01 +00:00
w00t
9b2b280cd0 Fix my compile error.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8925 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 18:39:16 +00:00
brain
9a4067dac4 More fixes to configure stability with undefined values/closed filehandles
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8924 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 18:30:38 +00:00
brain
9e139f31b2 This should fix the error owine was getting in configure (THANKS strict) :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8923 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 18:28:48 +00:00
brain
bfaf7e3b27 Commit patch from danieldg that makes a ton of stuff const-safe for latest warn-happy trigger-happy gcc4 (thanks)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8922 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 18:22:19 +00:00
w00t
0ec05c9bb3 This doesn't need to be inside the loop. There is only one IP for (potentially) multiple ports, after all..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8921 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 18:06:39 +00:00
w00t
9d2422582c CONSTIFY\!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8920 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 16:20:05 +00:00
w00t
21a5b7c3cc Fix a silly crash I caused.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8919 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 16:14:54 +00:00
w00t
449bbb6e04 Slight API tweak. Change Command to take char * instead of char in it's constructor, this avoids confusion/generates a compile error if someone mixes up flags with number of params, instead of working but not working as expected in a weird manner.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8918 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 10:39:25 +00:00
w00t
1539049f36 Support \* in silence flags, do the same thing as a(ll) flag.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8917 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 22:47:45 +00:00
w00t
1ea31c8ecf Add SVSWATCH command: services may issue it to modify the watch list of a client. Syntax: :sender SVSWATCH user watchcraphere
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8916 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 22:26:07 +00:00
brain
6fc7edf5e3 HA, that did it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8914 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 15:40:56 +00:00
brain
fb9b4ec54c apparently ar -s is equivalent to ranlib, except it doesnt have a fucking noisy non-redirectable message :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8913 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 15:36:37 +00:00
brain
87a040c128 -Wshadow fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8912 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 15:26:29 +00:00