7591 Commits

Author SHA1 Message Date
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
w00t
46048c59dc Backport r8910: oper quit message would be blank
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8911 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 10:43:47 +00:00
aquanight
c81bcf3333 Fix missing user->nick in m_callerid
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8908 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 09:30:11 +00:00
aquanight
6ffca6b956 -Wshadow fixes for some modules in extra/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8907 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 01:42:11 +00:00
aquanight
6da3b9be51 Tidy up run-cc step display
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8906 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12 01:22:19 +00:00
brain
9433f41b11 Add (empty) testsuite.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8904 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 15:28:06 +00:00
w00t
04e8f8fd99 Fix trampling on memory in Z/G/K/ELine.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8901 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 13:04:13 +00:00
w00t
539f90e026 Move most of startup process to use new logging, adds target 'STARTUP'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8900 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 11:31:19 +00:00
w00t
e1b0dcd365 -Woverloaded-virtual fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8899 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 11:20:48 +00:00
w00t
d697fa15ce Add -Woverloaded-virtual (fixes to follow)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8898 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 11:08:41 +00:00
w00t
7bed8a2190 Fix: Extra duplication of InspIRCd * is not necessary.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8896 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 10:55:40 +00:00
w00t
60f3d89d59 Remove many unneeded headers from spanningtree files
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8895 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 10:35:31 +00:00
w00t
4798f98ada Last of the -Wshadow fixes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8894 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 10:26:18 +00:00
w00t
25c8c8ba02 More -Wshadow fixes.. not really finished yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8893 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 09:45:44 +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
0626e6a68a Tidy up run-cc error reporting (eg: only say 'An error occured' once, and make it show before an include stack or 'In ctor/dtor/method/function' message)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8891 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 01:39:09 +00:00
brain
a300841244 Fix here too, to allow FD_SETSIZE > 64. If this doesnt work it will need to be set with /D on the commandline, but it looks like this is the best place to put it in an include (earliest possible place)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8890 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 23:30:31 +00:00
aquanight
f51d9ad5ab Fix m_chanlog crashing.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8887 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 22:51:01 +00:00
brain
7baae92cc9 Brainfart
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8886 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 21:57:42 +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
ef9ab2301d Fix case sensitivity
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8884 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 19:10:35 +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
eafd5233ec Hide ar and ranlib
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8882 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 18:24:43 +00:00
w00t
5d09cbf634 Add <badchan:redirect>: redirects users attempting to join a bad channel to a second channel. Contributed by dz. (thanks)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8881 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 18:23:03 +00:00
brain
8e7fceba88 More to quiet down. This will be a really tidy looking build for most users now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8880 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 17:27:55 +00:00
brain
bfc3de1cc4 Even tidier
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8879 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 17:25:58 +00:00
brain
df167bf4ac Now very tidy make output, with pretty colours :p
(Unless it errors, then you get the full commandline and error output etc)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8878 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 17:22:36 +00:00
w00t
a86b10b883 Really allow for removal of SWHOIS via specifying blank SWHOIS (thanks for pointing out the mistake, danieldg)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8877 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 15:02:02 +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
eedce11c96 Add -pthread link flag
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8875 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 14:33:30 +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
w00t
59643d2938 Correctly rewrite bans in 1.2 also, and make zline on nicks actually work.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8873 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 14:28:01 +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
brain
b1312399e4 Add dirs (empty right now) for thread engines. For the start, there will be two. pthread and win32thread
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8870 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 13:40:13 +00:00
brain
8a3c523307 w00t br0ked it! :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8869 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 13:33:05 +00:00
brain
75d5b90c9c Move run-cc.pl to make/ directory and update paths, keeps root tidy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8868 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 13:30:59 +00:00
w00t
3b43fd186b Make K|G|Z|ELine actually work with a nickname target (code was there but not functional)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8866 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 00:53:05 +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
brain
67976608ff Warnings yellow, errors red. This will help us pick errors out from warnings in the output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8864 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 20:44:25 +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
1af394d68b Implement bug #492: empty swhois string unsets swhois.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8862 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 19:51:52 +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