8137 Commits

Author SHA1 Message Date
w00t
1fc43c1cab More debug for Jason
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9736 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 17:41:04 +00:00
brain
697cf1b658 Please see my XXX in m_conn_umodes w00t, maybe something we can look at next?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9735 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 17:38:51 +00:00
brain
ade1c467be Remove some unneccessary .c_str() calls
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9734 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 17:27:51 +00:00
w00t
d2a1d1df43 Debug logging for connect class match failure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9733 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 17:25:29 +00:00
w00t
9e59e5e906 Fix bug found in <connect> code, <connect:limit> was checked after finding a class that matched, not during - meaning that if they were locked out by <connect:limit>, they were given no second chance to be matched by a future <connect> (and that <connect> deny would not apply to them if necessary etc). Also tidy this up a *lot*, remove some of the nesting by (ab)using looping. This is a lot more understandable for me now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9732 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 17:16:55 +00:00
brain
1fa86207ed Fixy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9731 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 14:29:04 +00:00
brain
d59e218966 Whoops, this was a bit fucked up :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9730 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 14:28:18 +00:00
brain
cd7301e6f9 Log all snomasks to "snomask" log type, level DEFAULT. This means your log gets all the snomasks in it, but you can filter them out with "-snomask". This allows a user to redirect them to a channel with m_chanlog
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9729 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 14:19:16 +00:00
brain
917d2a3dd7 Holstein
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9728 e03df62e-2008-0410-955e-edbf42e46eb7
v1.2.0a3
2008-05-18 13:04:32 +00:00
brain
a44ec2aa51 MD_update causes valgrind warnings, remove it..... ...... JUST KIDDNG :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9727 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-16 17:53:55 +00:00
brain
af30d19ff4 Make FD_SETSIZE larger. We wont ever have this many users via select() on windows, this is to test out some stuff mainly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9726 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-15 19:45:13 +00:00
brain
4db28c85e4 Right now this just dumps the config hash as html
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9725 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13 20:53:06 +00:00
brain
9f33bf7fc8 Check for windows drive letters on the start of paths and treat them the same as paths that start with /, this makes insp more friendly for windows filesystems
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9724 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13 17:16:26 +00:00
brain
25a78272bc Fix the format of +p channels in /list (both in core /list and in m_safelist), thanks jrm :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9723 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13 16:18:52 +00:00
brain
82bf46fa06 Microsoft, in their "infinite wisdom" decide to have no sensible naming convention at all for windows api structs so have taken the struct name 'ACL' in winnt.h. Therefore we have to rename ours to HTTPACL :(
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9720 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13 15:53:12 +00:00
bricker
a4f4fdbe1b add HostServ as IRCservices has it as an option and add the names inside anope.conf so they know its being specified..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9719 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13 07:05:15 +00:00
bricker
f12f2d3acc add "Bug tracker" to the default motd ;) everything else is there, why not that
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9718 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13 06:58:42 +00:00
bricker
d02c51b048 add a couple quotes ;)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9717 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13 06:55:57 +00:00
brain
ce168051e2 code tidyups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9716 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 22:40:44 +00:00
brain
bc34467146 httpd connection close fixes (these need to be backported to 1.1 at some point?) and acl tweaks to make http auth work
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9714 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 21:16:04 +00:00
brain
0aa899ee2f Add HTTP auth
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9713 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 20:34:52 +00:00
brain
d520798751 Add example config
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9712 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 19:42:36 +00:00
brain
8f7f74cf0f Add support for blacklists and whitelists, just http password auth to go (the most complex part)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9711 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 19:37:50 +00:00
brain
b3bcd98242 Flesh this out some more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9710 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 19:26:52 +00:00
brain
dfdbcc2939 Skeleton ACL module, and hooks for it. This will provide ip restrictions, passwording etc for httpd modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9709 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 19:06:36 +00:00
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 &quot; 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