7884 Commits

Author SHA1 Message Date
peavey
2b8773a6ba Remove calls to deprecated InspIRCd::Log(), thanks danieldg for reporting.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9327 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 16:19:59 +00:00
brain
51af6cbf2f Zap printfs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9326 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 16:14:33 +00:00
brain
06335d5a19 Fix lost messages, thanks w00t and peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9325 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 16:05:46 +00:00
w00t
b1aa962634 fix warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9324 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 16:04:38 +00:00
w00t
cf2a8bd385 Attempt to avoid infinite loops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9323 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:48:37 +00:00
w00t
d0617b1060 Fix this (thx danieldg and owine)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9322 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:45:14 +00:00
brain
67349a9d62 Fix bad use of old event based api for spanningtree (this is mostly gone now)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9321 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:42:33 +00:00
w00t
eb2e28b0cf Remove deprecated InspIRCd::Log() method so people don't use it etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9320 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:40:33 +00:00
brain
f02df696d5 Whoops, thanks w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9319 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:27:06 +00:00
brain
ad6052e734 Whoops, wrong pointer. write out 500 lines 'i will check my code twice', brain.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9318 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:17:33 +00:00
brain
9f69a7c9e7 Make it buildable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9317 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:11:36 +00:00
brain
d8f50c5a51 Whoops, this would be bad if not fixed :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9316 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:10:10 +00:00
w00t
bb1140e2da Fix chanlog (NOTE: previous commit will require a FULL recompile)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9315 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:09:46 +00:00
brain
89fc6ca9c6 Remote server PRIVMSG/NOTICE to nickname support
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9314 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:06:32 +00:00
w00t
ce4dc653ce Remove two useless methods, chanlog is b0rked at the moment.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9313 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:06:24 +00:00
brain
3cb3bb6f9a Support for remote NOTICE/PRIVMSG with server origin and user target
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9312 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 15:00:43 +00:00
brain
87dbe508d5 Add safety check for nonexistent server in receiving server origin privmsg (shouldnt happen as we vet the uid higher up the chain, but check anyway!) Also add trigger for OnText to remove privmsg/notice
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9311 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 14:48:34 +00:00
w00t
05cc48f189 Modify chanlog to send message remotely, too. Logging now works server <-> server, so a whole network can log stuff to a single channel.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9310 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 14:45:25 +00:00
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