brain
9bc734b739
These are just copies of the pthread engine right now, will probably make them work tomorrow night
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8988 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21 21:41:20 +00:00
brain
9bc7a6139d
ThreadEngine::GetName(), for display in /version
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8985 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21 17:59:26 +00:00
brain
4d4882d667
Working thread test!!!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8983 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21 17:27:55 +00:00
brain
4e5244a4d8
Now buildble.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8982 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21 17:11:31 +00:00
brain
21193e2e62
Threadengine stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8980 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21 17:06:20 +00:00
brain
14b1960421
Testsuite now does something
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8979 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21 16:32:38 +00:00
brain
54b2b600de
More test suite stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8976 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21 15:59:57 +00:00
brain
c3b8b80a33
Testsuite stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8975 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-21 15:49:32 +00:00
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
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
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
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
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
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
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
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
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
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
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
5db1d322be
Add -Wshadow to cflags, and fix a bunch of warnings that come with it. Add a note to webirc that needs looking at.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8892 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 09:41:58 +00:00
aquanight
4965a1d669
Code for loading <log method=file> tags from config, but this still needs to be fit into the config reader stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8885 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 20:07:30 +00:00
brain
2cc6856e87
Add comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8883 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 18:37:06 +00:00
brain
11c08b9aed
Each Thread class must have its own thread handle, duh. Someone take away my craqpipe NOW.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8876 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 14:50:38 +00:00
brain
9dbd7d10ac
Add threading engine stuff. Docs to follow, untested and not used anywhere yet
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8874 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 14:32:02 +00:00
aquanight
f63580a4ea
Per-logstream loglevels.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8871 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 14:20:58 +00:00
w00t
1df2121274
Fix a bug in new logging API (global logstreams weren't notified of events if a specific logstream had an event claimed, don't store type in logstreams (pass it to OnLog instead), and add an example of what the new logging API can do: m_chanlog - logs to #services at the moment.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8865 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 21:00:07 +00:00
w00t
bfff1d9d93
Implement LogManager::CloseLogs() to give logstreams a chance to clean up on rehash or exit.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8863 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 20:15:09 +00:00
w00t
a969da5dec
Add destructor for FileLogStream that destroys nonblocking FileLogger
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8861 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 13:18:41 +00:00
w00t
2bd34b7037
Add a printf-type override for LogManager::Log(). We need to find a way to see if a log call would have any interest, to avoid unnecessary printf() here though. Convert a bunch of stuff to using new logging (added targets: USERS, USERIO)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8860 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 13:06:02 +00:00
w00t
af7e1a1ca8
New logging implementation. Also write messages about InspIRCd::Log() being deprecated. Any takers on changing it all to use the new system? :P. STILL TODO: create <log> blocks in config, add a method called to 'cleanup' (or use destructor) of logstreams, add a method to logmanager to initiate destruction of all logstreams.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8858 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 12:41:17 +00:00
w00t
db1c78986c
Instantiate log manager
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8857 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 11:43:25 +00:00
w00t
3897856fb7
Initial totally untested logger implementation that does nothing.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8856 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 11:35:27 +00:00
aquanight
18154f4d22
Support for /invite <user> <channel> <timeout> - if the user doesn't partake in <timeout> time, the invite expires
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8854 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-08 23:35:39 +00:00
brain
0ae3241087
ARGH SPACE INDENTS, DIE DIE DIE
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8849 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-07 15:16:19 +00:00
fez
e1b1b6380c
fixed std:: stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8827 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-05 02:42:39 +00:00
fez
41c5854a19
fixed w00t's brain (I mean std:: stuff)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8826 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-05 02:42:01 +00:00
fez
532d9de8c5
fixed std:: stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8825 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-05 02:41:22 +00:00
fez
426be9a89f
fixed std:: stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8824 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-05 02:40:51 +00:00
w00t
f127161467
Clear up header insanity
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8808 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-03 23:20:20 +00:00
w00t
34fe4276bd
(finally) remove deprecated CMD_USER_DELETED
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8807 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-03 21:23:06 +00:00
w00t
27fbecdaa7
Back out the AllowDevoiceSelf stuff, it wasn't going to work anyway. Accidental commit.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8796 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-02 22:58:56 +00:00
w00t
8509727e16
Cache User::GetIPString()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8795 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-02 22:57:28 +00:00
aquanight
d555db40f4
Make m_password_hash able to pick up hasher modules after it's loaded, meaning m_md5 and m_sha256 no longer have to be loaded before it.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8793 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-02 22:14:24 +00:00
w00t
dd98d56cab
Move some stuff to usermanager, remove a little header insanity, remove trace because it's still less useful than a chocolate fireman.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8790 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-02 20:55:16 +00:00
fez
db90a4e900
removed sys/select.h on windows platform
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8781 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-01 07:37:04 +00:00