8212 Commits

Author SHA1 Message Date
brain
46f43132aa Patch ReadFile() not to bork on one line files, and ensure it works ok with win32 (it does)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9707 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 16:00:34 +00:00
brain
03fe9de7ac Fix wildcard matching in win32, seems that incrementing an iterator dereferences it internally on win32, so iter++ when iter == container.end() drops an assert. YES, an assert. No fucking throw, making it a fucking pain to debug (no bt on assert, program exits)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9706 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 15:59:57 +00:00
brain
30044376c1 Show keys to opers correctly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9705 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-11 17:51:07 +00:00
brain
3fd8e7afd7 Dont obscure channel keys in the stats
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9704 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-11 14:57:30 +00:00
peavey
b887f45a0a cleanup an old unused var
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9703 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-11 13:49:22 +00:00
brain
c74d20768b Show +sp channels to opers correctly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9702 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-11 00:27:55 +00:00
peavey
5e747af4d2 update svn ignore to create less noise on conflicts and failed patching.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9700 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 23:00:43 +00:00
brain
cf513d2e3f Improve this not to use pointer maths directly, use an iterator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9699 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 21:15:56 +00:00
brain
8cbc83c155 Fix for bug #532 reported by dantheman, thanks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9698 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 21:11:13 +00:00
brain
d0a4ecd055 Check for " to " too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9697 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 19:56:36 +00:00
brain
6fa8fe7a2c Add a 'sanitize' function to sanitize special characters in the output, <, > and & etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9696 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 19:52:07 +00:00
brain
a3719e0ad5 Add ident, port, ip to user info in <user> tag
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9695 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 18:24:21 +00:00
brain
050e232499 Give tons more information in the xml feed, should be enough to construct just about any stat i can think of right now. let me know if you need more info in the feed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9694 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 18:17:15 +00:00
brain
0d446447c7 Fix for last nights blockcaps tweak to make it a little more accurate
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9692 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 16:43:17 +00:00
peavey
e7c95d470d Fix LoadConf always reading 1 extra byte of random garbage.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10 00:04:14 +00:00
brain
3fb96ec5df If nobody else is going to submit a diff, may as well do it myself. Using your noggin avoids two loops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9690 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 22:25:00 +00:00
peavey
b260458e4d Add *.diff and *.patch to ignores
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9688 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 22:14:06 +00:00
peavey
9dadbc294e Same fixes to make this module scale much better. Dont connect on each query, keep open and send a byte like MySQL module.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9687 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 20:44:31 +00:00
peavey
1d12db188a Fixes to make this module scale much better. Dont connect on each query, keep open and send a byte like MySQL module. Now with cleanup of bufferedsocket thanks to w00t <3
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9686 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 20:35:37 +00:00
peavey
9a6a031fc3 nuke some debug (snatch)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9685 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 20:31:14 +00:00
w00t
3a5025f4f5 Don't stringjoin here, we don't for any other commands (cban, *line) so I'd like to stay consistant. This also won't confuse any third party apps. This is my fault, I hated colons when I first started working on insp. ;p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9684 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 19:11:12 +00:00
w00t
118b2af99b Don't route after nuking the user from orbit, there's no point (minor)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9683 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 18:43:48 +00:00
brain
8888d8ef07 Add test suites for edge cases and in the process, spot a crash in the new code and fix it (empty mask in the match() functions makes it bomb)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9682 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 18:39:37 +00:00
brain
03ef675c0d Convert CIDR matching and wildcard matching to operate on std::strings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9681 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 17:24:50 +00:00
w00t
fc349c8738 Fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9680 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 16:11:07 +00:00
peavey
255b59e44b Fix crash if OnCheckBan is called and there is no list, the if was reversed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9679 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 15:04:22 +00:00
w00t
02bbbd0cdf Port from hottpd: Split src/socket.cpp out into src/cidr.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9678 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 14:16:50 +00:00
peavey
d8d457dd18 Fix segfault on rehash and tweak the connect code.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9677 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 04:10:11 +00:00
peavey
17a77470c6 Fix some indenting.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9676 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 04:09:16 +00:00
peavey
a8bdf9887f Add defaults for SQLHost since comparing depends on them being initialised. Add also overload for operator!= for SQLhost.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9675 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 04:08:27 +00:00
peavey
6087d621f7 Fix restart code, by getting run path and argv before calling Cleanup()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9674 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 01:13:02 +00:00
brain
99a1ea0892 Add call to protocol interface to get useful info on the server map. Return a std::list of classes each of which has a server name, parent server name, user and oper count, and latency in millisecs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9673 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 22:40:11 +00:00
brain
2425244549 Make this nicer, rely on the last write event after the Write() that sends all the data, not on a timer
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9671 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 22:15:00 +00:00
brain
6f43a18a8a Remove the timeout stuff, it is not stable and not really required, we are not emulating apache here but making a bare minimum of compliance to pass along xml etc.
Personally i only really care about compliance with irc RFCs :p


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9669 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 22:02:08 +00:00
brain
92153766b5 When searching by servername without wildcards, conceal +i users no matter what craq the spec was on
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9668 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 17:27:49 +00:00
w00t
f34b371715 Possible todo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9666 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 17:06:46 +00:00
w00t
ff44d048a2 Clarify a comment that confused me
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9665 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 17:02:23 +00:00
w00t
c3e5246590 Rename to m_connectban
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9664 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 16:54:16 +00:00
w00t
80a4db3cb0 Prepare to rename this, change it's purpose from quitban to connect ban (was I smoking crack?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9663 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 16:53:03 +00:00
w00t
d0646a9b10 Remove a level of nesting from this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9662 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 16:38:30 +00:00
w00t
9116764793 Masterful rewrite of User::AddBuffer to remove a string copy (and make more efficient) thanks to some nifty string manipulations. This should provide benefit on highly loaded nodes. This has *not* been thoroughly tested considering it's criticality, but I have spent the past ~4 hours writing and testing it, and it seems ok.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9661 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-07 21:53:30 +00:00
w00t
1bf397ca49 Add support for /nick 0: changes nick to UID, which can come in useful for circumstances when trying to connect while your nick is in use. Also supported by various others (ircd etc?). This also moves validation checking up a bit, avoiding two calls to IsNick in an obscure circumstance (hooray).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9660 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-07 18:54:14 +00:00
brain
69b42417f3 Make u_listmode more sensible and make it properly use WriteNumeric, and a few other misc fixes found during today
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9659 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-07 18:24:55 +00:00
brain
565173aedd Fix broken m_alias, cant preallocate and then push_back, because then its maxparams + size :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9658 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-06 22:34:45 +00:00
brain
d98358886d Fix bad throws and some other stuff in this module
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9657 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-06 22:05:19 +00:00
special
8d10212b91 Removed the verbosity in 'make clean' to fix issues with OpenBSD and possibly others
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9655 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-06 21:07:42 +00:00
peavey
95ff25c717 Fix typo +c => +C reported by alamar
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9653 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-06 21:04:28 +00:00
brain
3b2aed3757 Remove JOIN sending, all should be FJOIN
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9651 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 21:21:13 +00:00
w00t
d832f4b250 Snotice on failed oper.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9650 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 21:19:03 +00:00
w00t
2ebf1f0055 Okay, this was good in theory, but totally and utterly fucked in implementation. Rip out automatic global snotice code. It's not going to be *that* difficult to trigger global snotice with protocol interface now anyway I guess. We need to re-add calls to protocol interfaces in places like failed oper and so on.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9649 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 21:17:09 +00:00