8066 Commits

Author SHA1 Message Date
brain
8fc3c90385 Extra safety required by recent changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9309 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 14:44:02 +00:00
brain
001861f5d2 Add protocol api functions: PI->WriteChannelPrivmsg() and PI->WriteChannelNotice() - sends with SID origin over network
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9308 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 14:37:23 +00:00
brain
463979eb86 Server origin PRIVMSG and NOTICE now supported by protocol. Will add interface after i've shredded a load of paper >:)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9307 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 14:05:07 +00:00
brain
f7a28a7800 Server origin privmsg, UNTESTED - will test in a min
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9306 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 13:59:29 +00:00
brain
3f971b447f Change the function name because gcc is dumb :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9305 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 13:29:15 +00:00
brain
d7c6f213ec Whoops, fix typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9304 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 13:24:54 +00:00
brain
d3d32dcf6d A convenience function for ProtocolInterface::SendMode that just takes a string, then splits it internally to deque for sending to the other function of the same name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9303 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 13:21:12 +00:00
brain
0d9e5bd011 Now rip out the old handler, and replace with an error log line
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9302 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 13:15:31 +00:00
brain
59ca4eec57 Make all our modules use the new stuff rather than the send_ events
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9301 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 13:12:10 +00:00
w00t
e728d9abdf Match on nick change option for RLine, document m_rline & this option.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9300 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 12:55:51 +00:00
brain
b07868e77c The rest of the server protocol interface and fix a warning in m_rline
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9299 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 12:49:42 +00:00
w00t
b29d14d000 Check for match and apply R:Lines on connect
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9298 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 12:36:26 +00:00
brain
e48c7e038a Add basic stuff for protocol interface and implement a couple of the methods. It's all in ServerInstance->PI for calls from other modules/the core
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9297 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 12:30:38 +00:00
brain
04dbe9ccc5 Update sln
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9296 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 08:13:47 +00:00
brain
f2078a777e Whoops, allow numeric 353 (names list) to be overridden by OnNumeric if we want to
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9295 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-03 22:50:36 +00:00
brain
e65eee7e8d Change the 'is not within the modules dir' message to something less obscure that explains the problem: "Module <file> is not in the module directory that i am configured to look in (is <path> really a symlink?)"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9290 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-03 20:16:58 +00:00
brain
62691675e3 Patch to fix this module from flagging all client sockets as xml
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9288 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-03 16:14:34 +00:00
brain
3079075ad6 Fix socketengine select to work with arsey compilers that think we're using ISO C++
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9287 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-03 16:03:10 +00:00
w00t
561ca4e256 Fix a (long standing) tiny bug: wallops do not go out to all +w users, only opered users. This needs applying to 1.1 too, will be done shortly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9285 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-03 15:22:42 +00:00
peavey
b4c7be2458 remove references to maxclient we forgot here, thx Zaba for reporting.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9284 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-03 15:13:43 +00:00
brain
57608fe351 Fixes for bug #493, tidyups to clearing of channel modes on losing FJOIN. Module unloads may also be tidied at a future date but it means reordering some loops in mode.cpp. See around the comment added.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9283 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 23:53:29 +00:00
w00t
8095955577 Fix brain's compile error :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9282 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 22:57:52 +00:00
brain
eb7a2a9ea6 Fix for bug #456 so we can be rid of it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9281 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 22:53:33 +00:00
brain
2a5bb0e8a5 This is better than using a const; Since 1.1 we don't need a value at all, we can Extend with nothing as a bool marker
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9279 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 22:37:17 +00:00
w00t
e88a7d6fbe Remove unload_kludge: this still isn't handled in a very polite way (it uses FakeClient to force removal) but it is tidier than it was. We can only do this now FakeClient is global rather than constantly reinstantiated.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9278 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 22:30:39 +00:00
w00t
6a63702d27 Just use string literal instead of declaring a var for it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9277 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 22:17:40 +00:00
brain
7dadb07a19 Fix peavey and w00ts bug they found by removing the nonblocking part of the logger. This stuff was hackish and isnt required. If your hard disk locks up, then you have bigger worries.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9276 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 19:52:33 +00:00
brain
0ba0beb0c4 Depreciated ServerInstance->Log() seems to crash configreader on rehash? We should remove the depreciated calls anyway, so im not too concerned as to why they crash - probably not threadsafe.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9275 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 19:17:34 +00:00
brain
9543f33d3c Move this message so it actually displays when we're running non-debug: "InspIRCd is now running as 'test.chatspike.net'[037] with 5576 max open sockets"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9274 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:50:13 +00:00
brain
52671661f8 DOH! Fix my muppetry of a segfault, and fix some warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9273 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:45:54 +00:00
brain
82ce093f1a Fix yet another warning.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9271 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:16:14 +00:00
brain
d356b84dc9 Fix another warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9270 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:11:44 +00:00
brain
1290b11508 make sure we include the right headers and fix a warning in cmode_b
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9269 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:05:25 +00:00
brain
46242bf71b Proper sysctl stuff to work with bsd. It seems that the uname value 4 is linux specific and they dont even have a const for it there!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9268 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:55:29 +00:00
brain
5a33229824 Fix stats, this has never actually displayed the per-class max in stats I, now it does
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9267 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:40:36 +00:00
brain
29eea851b2 Squish a warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9266 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:34:27 +00:00
brain
e66e07d53e Remove MAXCLIENTS, this is supported at runtime by the softlimit anyway.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9265 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:32:45 +00:00
brain
4e078ed34b Remove all compile-time max client and max fd's configuration. This is no longer required by InspIRCd as it is fully supported by auto detection and connect allow lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9264 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:27:40 +00:00
brain
2db77cda56 Automatic detection and allocation of max fds. No longer needs recompile to change, just adjust it in your kernel or whatever and restart insp.
Please note that select and iocp socket engines do not support detection and are always set to FD_SETSIZE and 10240 descriptors respectively.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9263 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:08:09 +00:00
w00t
d9d33e7246 Fix all this crap - it actually works now (we pray..)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9261 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 12:33:01 +00:00
w00t
519d8e5dfe Better generation. This is still fucked up, but less spectacularly and in a much less obvious way.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9260 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 11:48:54 +00:00
w00t
4f66a9a4c4 Fuck. STOP committing first thing after waking up.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9259 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 09:04:02 +00:00
w00t
28c6e2f970 As part of this... don't give fake client a valid UID, as it's not needed anyway.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9258 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 09:00:57 +00:00
w00t
c05358fa96 Bah
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9256 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 08:55:28 +00:00
w00t
9fcf4c08a1 Unneeded
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9255 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 08:54:43 +00:00
w00t
4b2dda4d80 Only setup fakeclient once.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9253 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 23:39:44 +00:00
w00t
814eff8532 Initialise a variable correctly to avoid valgrind warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9252 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 23:24:22 +00:00
w00t
1850708162 Don't fuck up the map by inserting 0
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9251 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 20:32:28 +00:00
w00t
2812ee8350 Same as 9249
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9250 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 19:54:08 +00:00
w00t
86c2b7abf7 Remove call to FlushWriteBuffer from BufferedSocket::Write(), this means we don't try write() pointlessly when we may very well not (chewing CPU), and instead waits for the socketengine to tell us we can write. Tested, works fine. (nothing used this return value anyway)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9247 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 18:56:31 +00:00