]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
16 years agoCommit these
brain [Mon, 19 May 2008 00:19:34 +0000 (00:19 +0000)]
Commit these

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9757 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoThese too
brain [Mon, 19 May 2008 00:14:29 +0000 (00:14 +0000)]
These too

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9756 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix this one
brain [Mon, 19 May 2008 00:13:05 +0000 (00:13 +0000)]
Fix this one

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9755 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix these too
brain [Mon, 19 May 2008 00:12:47 +0000 (00:12 +0000)]
Fix these too

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9754 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAnd these
brain [Mon, 19 May 2008 00:11:49 +0000 (00:11 +0000)]
And these

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9753 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix these
brain [Mon, 19 May 2008 00:11:38 +0000 (00:11 +0000)]
Fix these

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9752 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoConvert m_spanningtree
aquanight [Sun, 18 May 2008 23:47:28 +0000 (23:47 +0000)]
Convert m_spanningtree

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9751 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoNext to convert
brain [Sun, 18 May 2008 23:38:46 +0000 (23:38 +0000)]
Next to convert

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9750 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix two
brain [Sun, 18 May 2008 23:25:41 +0000 (23:25 +0000)]
Fix two

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9749 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMake User:: nick/ident/dhost/fullname and some other things std::string instead of...
aquanight [Sun, 18 May 2008 23:15:53 +0000 (23:15 +0000)]
Make User:: nick/ident/dhost/fullname and some other things std::string instead of char*/char[] (MODULES DO NOT COMPILE)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9748 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoThis conflicted a few hours ago apparantly (????)
w00t [Sun, 18 May 2008 23:07:06 +0000 (23:07 +0000)]
This conflicted a few hours ago apparantly (????)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9747 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoJason, try this..
w00t [Sun, 18 May 2008 23:06:05 +0000 (23:06 +0000)]
Jason, try this..

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9746 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoSame here
brain [Sun, 18 May 2008 21:36:18 +0000 (21:36 +0000)]
Same here

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9745 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix some unneeded .c_str() usage in m_spanningtree
aquanight [Sun, 18 May 2008 18:55:40 +0000 (18:55 +0000)]
Fix some unneeded .c_str() usage in m_spanningtree

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9743 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix for Jason's bug.. this needs more thought, though. I'll probably whip up somethin...
w00t [Sun, 18 May 2008 18:40:51 +0000 (18:40 +0000)]
Fix for Jason's bug.. this needs more thought, though. I'll probably whip up something tonight.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9742 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agocheck for GetDisabled should be before the match() commands, because its not worth...
brain [Sun, 18 May 2008 18:36:42 +0000 (18:36 +0000)]
check for GetDisabled should be before the match() commands, because its not worth wasting cpu time on match if its disabled anyway

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9741 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoShow count of total num of classes, for Jason
w00t [Sun, 18 May 2008 18:33:33 +0000 (18:33 +0000)]
Show count of total num of classes, for Jason

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9740 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix two occurances of match() on a const char* here
brain [Sun, 18 May 2008 18:26:07 +0000 (18:26 +0000)]
Fix two occurances of match() on a const char* here

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9739 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoI dont know who said we keep going when we get a match, because thats just silly...
brain [Sun, 18 May 2008 18:23:30 +0000 (18:23 +0000)]
I dont know who said we keep going when we get a match, because thats just silly. we stop at the first connect block that matches all critera of the connection.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9738 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove .c_str()'s in match() calls that are no longer needed as match() natively...
brain [Sun, 18 May 2008 17:51:36 +0000 (17:51 +0000)]
Remove .c_str()'s in match() calls that are no longer needed as match() natively takes std::strings

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9737 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMore debug for Jason
w00t [Sun, 18 May 2008 17:41:04 +0000 (17:41 +0000)]
More debug for Jason

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9736 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoPlease see my XXX in m_conn_umodes w00t, maybe something we can look at next?
brain [Sun, 18 May 2008 17:38:51 +0000 (17:38 +0000)]
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

16 years agoRemove some unneccessary .c_str() calls
brain [Sun, 18 May 2008 17:27:51 +0000 (17:27 +0000)]
Remove some unneccessary .c_str() calls

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9734 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDebug logging for connect class match failure
w00t [Sun, 18 May 2008 17:25:29 +0000 (17:25 +0000)]
Debug logging for connect class match failure

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9733 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix bug found in <connect> code, <connect:limit> was checked after finding a class...
w00t [Sun, 18 May 2008 17:16:55 +0000 (17:16 +0000)]
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

16 years agoFixy
brain [Sun, 18 May 2008 14:29:04 +0000 (14:29 +0000)]
Fixy

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9731 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoWhoops, this was a bit fucked up :p
brain [Sun, 18 May 2008 14:28:18 +0000 (14:28 +0000)]
Whoops, this was a bit fucked up :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9730 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoLog all snomasks to "snomask" log type, level DEFAULT. This means your log gets all...
brain [Sun, 18 May 2008 14:19:16 +0000 (14:19 +0000)]
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

16 years agoHolstein
brain [Sun, 18 May 2008 13:04:32 +0000 (13:04 +0000)]
Holstein

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9728 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMD_update causes valgrind warnings, remove it..... ...... JUST KIDDNG :)
brain [Fri, 16 May 2008 17:53:55 +0000 (17:53 +0000)]
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

16 years agoMake FD_SETSIZE larger. We wont ever have this many users via select() on windows...
brain [Thu, 15 May 2008 19:45:13 +0000 (19:45 +0000)]
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

16 years agoRight now this just dumps the config hash as html
brain [Tue, 13 May 2008 20:53:06 +0000 (20:53 +0000)]
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

16 years agoCheck for windows drive letters on the start of paths and treat them the same as...
brain [Tue, 13 May 2008 17:16:26 +0000 (17:16 +0000)]
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

16 years agoFix the format of +p channels in /list (both in core /list and in m_safelist), thanks...
brain [Tue, 13 May 2008 16:18:52 +0000 (16:18 +0000)]
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

16 years agoMicrosoft, in their "infinite wisdom" decide to have no sensible naming convention...
brain [Tue, 13 May 2008 15:53:12 +0000 (15:53 +0000)]
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

16 years agoadd HostServ as IRCservices has it as an option and add the names inside anope.conf...
bricker [Tue, 13 May 2008 07:05:15 +0000 (07:05 +0000)]
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

16 years agoadd "Bug tracker" to the default motd ;) everything else is there, why not that
bricker [Tue, 13 May 2008 06:58:42 +0000 (06:58 +0000)]
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

16 years agoadd a couple quotes ;)
bricker [Tue, 13 May 2008 06:55:57 +0000 (06:55 +0000)]
add a couple quotes ;)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9717 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agocode tidyups
brain [Mon, 12 May 2008 22:40:44 +0000 (22:40 +0000)]
code tidyups

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9716 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agohttpd connection close fixes (these need to be backported to 1.1 at some point?)...
brain [Mon, 12 May 2008 21:16:04 +0000 (21:16 +0000)]
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

16 years agoAdd HTTP auth
brain [Mon, 12 May 2008 20:34:52 +0000 (20:34 +0000)]
Add HTTP auth

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9713 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd example config
brain [Mon, 12 May 2008 19:42:36 +0000 (19:42 +0000)]
Add example config

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9712 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd support for blacklists and whitelists, just http password auth to go (the most...
brain [Mon, 12 May 2008 19:37:50 +0000 (19:37 +0000)]
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

16 years agoFlesh this out some more
brain [Mon, 12 May 2008 19:26:52 +0000 (19:26 +0000)]
Flesh this out some more

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9710 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoSkeleton ACL module, and hooks for it. This will provide ip restrictions, passwording...
brain [Mon, 12 May 2008 19:06:36 +0000 (19:06 +0000)]
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

16 years agoPatch ReadFile() not to bork on one line files, and ensure it works ok with win32...
brain [Mon, 12 May 2008 16:00:34 +0000 (16:00 +0000)]
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

16 years agoFix wildcard matching in win32, seems that incrementing an iterator dereferences...
brain [Mon, 12 May 2008 15:59:57 +0000 (15:59 +0000)]
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

16 years agoShow keys to opers correctly
brain [Sun, 11 May 2008 17:51:07 +0000 (17:51 +0000)]
Show keys to opers correctly

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9705 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDont obscure channel keys in the stats
brain [Sun, 11 May 2008 14:57:30 +0000 (14:57 +0000)]
Dont obscure channel keys in the stats

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9704 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agocleanup an old unused var
peavey [Sun, 11 May 2008 13:49:22 +0000 (13:49 +0000)]
cleanup an old unused var

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9703 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoShow +sp channels to opers correctly
brain [Sun, 11 May 2008 00:27:55 +0000 (00:27 +0000)]
Show +sp channels to opers correctly

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9702 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoupdate svn ignore to create less noise on conflicts and failed patching.
peavey [Sat, 10 May 2008 23:00:43 +0000 (23:00 +0000)]
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

16 years agoImprove this not to use pointer maths directly, use an iterator
brain [Sat, 10 May 2008 21:15:56 +0000 (21:15 +0000)]
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

16 years agoFix for bug #532 reported by dantheman, thanks
brain [Sat, 10 May 2008 21:11:13 +0000 (21:11 +0000)]
Fix for bug #532 reported by dantheman, thanks

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9698 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoCheck for " to &quot; too
brain [Sat, 10 May 2008 19:56:36 +0000 (19:56 +0000)]
Check for " to &quot; too

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9697 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd a 'sanitize' function to sanitize special characters in the output, <, > and...
brain [Sat, 10 May 2008 19:52:07 +0000 (19:52 +0000)]
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

16 years agoAdd ident, port, ip to user info in <user> tag
brain [Sat, 10 May 2008 18:24:21 +0000 (18:24 +0000)]
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

16 years agoGive tons more information in the xml feed, should be enough to construct just about...
brain [Sat, 10 May 2008 18:17:15 +0000 (18:17 +0000)]
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

16 years agoFix for last nights blockcaps tweak to make it a little more accurate
brain [Sat, 10 May 2008 16:43:17 +0000 (16:43 +0000)]
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

16 years agoFix LoadConf always reading 1 extra byte of random garbage.
peavey [Sat, 10 May 2008 00:04:14 +0000 (00:04 +0000)]
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

16 years agoIf nobody else is going to submit a diff, may as well do it myself. Using your noggin...
brain [Fri, 9 May 2008 22:25:00 +0000 (22:25 +0000)]
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

16 years agoAdd *.diff and *.patch to ignores
peavey [Fri, 9 May 2008 22:14:06 +0000 (22:14 +0000)]
Add *.diff and *.patch to ignores

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9688 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoSame fixes to make this module scale much better. Dont connect on each query, keep...
peavey [Fri, 9 May 2008 20:44:31 +0000 (20:44 +0000)]
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

16 years agoFixes to make this module scale much better. Dont connect on each query, keep open...
peavey [Fri, 9 May 2008 20:35:37 +0000 (20:35 +0000)]
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

16 years agonuke some debug (snatch)
peavey [Fri, 9 May 2008 20:31:14 +0000 (20:31 +0000)]
nuke some debug (snatch)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9685 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDon't stringjoin here, we don't for any other commands (cban, *line) so I'd like...
w00t [Fri, 9 May 2008 19:11:12 +0000 (19:11 +0000)]
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

16 years agoDon't route after nuking the user from orbit, there's no point (minor)
w00t [Fri, 9 May 2008 18:43:48 +0000 (18:43 +0000)]
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

16 years agoAdd test suites for edge cases and in the process, spot a crash in the new code and...
brain [Fri, 9 May 2008 18:39:37 +0000 (18:39 +0000)]
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

16 years agoConvert CIDR matching and wildcard matching to operate on std::strings
brain [Fri, 9 May 2008 17:24:50 +0000 (17:24 +0000)]
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

16 years agoFix
w00t [Fri, 9 May 2008 16:11:07 +0000 (16:11 +0000)]
Fix

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9680 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix crash if OnCheckBan is called and there is no list, the if was reversed.
peavey [Fri, 9 May 2008 15:04:22 +0000 (15:04 +0000)]
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

16 years agoPort from hottpd: Split src/socket.cpp out into src/cidr.cpp
w00t [Fri, 9 May 2008 14:16:50 +0000 (14:16 +0000)]
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

16 years agoFix segfault on rehash and tweak the connect code.
peavey [Fri, 9 May 2008 04:10:11 +0000 (04:10 +0000)]
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

16 years agoFix some indenting.
peavey [Fri, 9 May 2008 04:09:16 +0000 (04:09 +0000)]
Fix some indenting.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9676 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd defaults for SQLHost since comparing depends on them being initialised. Add also...
peavey [Fri, 9 May 2008 04:08:27 +0000 (04:08 +0000)]
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

16 years agoFix restart code, by getting run path and argv before calling Cleanup()
peavey [Fri, 9 May 2008 01:13:02 +0000 (01:13 +0000)]
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

16 years agoAdd call to protocol interface to get useful info on the server map. Return a std...
brain [Thu, 8 May 2008 22:40:11 +0000 (22:40 +0000)]
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

16 years agoMake this nicer, rely on the last write event after the Write() that sends all the...
brain [Thu, 8 May 2008 22:15:00 +0000 (22:15 +0000)]
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

16 years agoRemove the timeout stuff, it is not stable and not really required, we are not emulat...
brain [Thu, 8 May 2008 22:02:08 +0000 (22:02 +0000)]
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

16 years agoWhen searching by servername without wildcards, conceal +i users no matter what craq...
brain [Thu, 8 May 2008 17:27:49 +0000 (17:27 +0000)]
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

16 years agoPossible todo
w00t [Thu, 8 May 2008 17:06:46 +0000 (17:06 +0000)]
Possible todo

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9666 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoClarify a comment that confused me
w00t [Thu, 8 May 2008 17:02:23 +0000 (17:02 +0000)]
Clarify a comment that confused me

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9665 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRename to m_connectban
w00t [Thu, 8 May 2008 16:54:16 +0000 (16:54 +0000)]
Rename to m_connectban

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9664 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoPrepare to rename this, change it's purpose from quitban to connect ban (was I smokin...
w00t [Thu, 8 May 2008 16:53:03 +0000 (16:53 +0000)]
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

16 years agoRemove a level of nesting from this
w00t [Thu, 8 May 2008 16:38:30 +0000 (16:38 +0000)]
Remove a level of nesting from this

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9662 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMasterful rewrite of User::AddBuffer to remove a string copy (and make more efficient...
w00t [Wed, 7 May 2008 21:53:30 +0000 (21:53 +0000)]
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

16 years agoAdd support for /nick 0: changes nick to UID, which can come in useful for circumstan...
w00t [Wed, 7 May 2008 18:54:14 +0000 (18:54 +0000)]
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

16 years agoMake u_listmode more sensible and make it properly use WriteNumeric, and a few other...
brain [Wed, 7 May 2008 18:24:55 +0000 (18:24 +0000)]
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

16 years agoFix broken m_alias, cant preallocate and then push_back, because then its maxparams...
brain [Tue, 6 May 2008 22:34:45 +0000 (22:34 +0000)]
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

16 years agoFix bad throws and some other stuff in this module
brain [Tue, 6 May 2008 22:05:19 +0000 (22:05 +0000)]
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

16 years agoRemoved the verbosity in 'make clean' to fix issues with OpenBSD and possibly others
special [Tue, 6 May 2008 21:07:42 +0000 (21:07 +0000)]
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

16 years agoFix typo +c => +C reported by alamar
peavey [Tue, 6 May 2008 21:04:28 +0000 (21:04 +0000)]
Fix typo +c => +C reported by alamar

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9653 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove JOIN sending, all should be FJOIN
brain [Mon, 5 May 2008 21:21:13 +0000 (21:21 +0000)]
Remove JOIN sending, all should be FJOIN

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9651 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoSnotice on failed oper.
w00t [Mon, 5 May 2008 21:19:03 +0000 (21:19 +0000)]
Snotice on failed oper.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9650 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoOkay, this was good in theory, but totally and utterly fucked in implementation....
w00t [Mon, 5 May 2008 21:17:09 +0000 (21:17 +0000)]
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

16 years agoDon't propegate SETHOST, ChangeDisplayedHost sends out hostchange anyway
w00t [Mon, 5 May 2008 20:39:40 +0000 (20:39 +0000)]
Don't propegate SETHOST, ChangeDisplayedHost sends out hostchange anyway

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9648 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoUn-break this so remote users still get RemoteMessage okay if targetted at a specific...
w00t [Mon, 5 May 2008 13:01:42 +0000 (13:01 +0000)]
Un-break this so remote users still get RemoteMessage okay if targetted at a specific user, remove comment also as it's using PI now anyway

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9646 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAlter remotemessage here to not do what w00ts patch did, twice
brain [Mon, 5 May 2008 12:51:25 +0000 (12:51 +0000)]
Alter remotemessage here to not do what w00ts patch did, twice

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9645 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDon't re-propegate CHGHOST unnecessarily
w00t [Mon, 5 May 2008 12:44:23 +0000 (12:44 +0000)]
Don't re-propegate CHGHOST unnecessarily

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9644 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd sanity checks to LoopCall to prevent miscalls like this by broken 3rd party modules
brain [Mon, 5 May 2008 10:10:34 +0000 (10:10 +0000)]
Add sanity checks to LoopCall to prevent miscalls like this by broken 3rd party modules

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9643 e03df62e-2008-0410-955e-edbf42e46eb7