7926 Commits

Author SHA1 Message Date
brain
fb596dfe94 Eliminate now-pointless label
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9483 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 14:45:02 +00:00
brain
fffca74820 Whack code duplication
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9481 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 14:35:51 +00:00
brain
a6d662108a Whack gotos here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9480 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 14:34:12 +00:00
brain
282236ab26 Fix 4-space indents :<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9479 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 14:32:09 +00:00
brain
b925987b28 Windows fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9475 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 09:47:45 +00:00
brain
dd73789134 Port a bunch of methods of InspIRCd to functors. IsChannel, IsSID, Rehash.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9474 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 03:28:56 +00:00
brain
5862157a08 Mapping for mkdir() to _mkdir() for windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9473 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12 17:57:53 +00:00
brain
cbefea57e9 Fixes for default log. It is now called ~/.inspircd/startup.log unless overridden by -logfile commandline param. The name of the log is more indicative of what it stores, and the location is more sane and fits in with standards.
If the home directory cant be found from either HOME or USERPROFILE env vars, then the startup.log is dumped to the current directory.
Removed -nolog from ./inspircd debug, antique setting.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9472 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12 17:55:47 +00:00
brain
27e2941ec9 Fixes for bug #515, update existing in-use connect tags on the fly in rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9471 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12 17:01:36 +00:00
brain
597ecea91e Trunk fix for bug #505 reported by nenolod
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9468 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12 15:48:01 +00:00
brain
0898f10f75 In visual studio, CRT crashes when strftime() is given an invalid format specifier and %F/%T are not supported! -- reported along with stripcolor bug by jackmcbarn, thanks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9467 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12 14:47:20 +00:00
brain
4e9654e2e9 Fix crash in m_stripcolor on windows when the colour code is the first item on a line
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9465 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12 14:21:15 +00:00
brain
2205c65c72 Replace here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9463 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12 13:20:38 +00:00
brain
2a3538cf05 (untested) don't move newconfig to ServerConfig::config_data until its been validated by all the validation funcs in the core config table
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9461 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11 23:55:10 +00:00
brain
1eae3c2ad4 Remove 'default log' and <options:loglevel> (wtf?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9460 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11 23:27:27 +00:00
peavey
c1ca268121 nuke loglevel from <options> description, and tidy some indenting.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9459 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11 23:12:57 +00:00
brain
02481be9a9 Patch from voidzero, bug #517
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9458 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11 20:54:15 +00:00
brain
9a7af3161c Fix sillies
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9457 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11 16:03:39 +00:00
w00t
d75ec0e5a5 Patch from Brain fixing broken stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9456 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11 14:27:26 +00:00
brain
e20a091589 Much faster way of checking if the user is 4in6, avoid strncmp in User::GetIPString(), do it in User::SetSockAddr()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9455 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-11 00:03:03 +00:00
brain
e6de2ea580 Provide an optional param translate4in6 to User::GetIPString() and default it to true. This hides the 0::ffff: on all info about an ipv6 user connecting over ipv4, making glines on them and bans etc work better.
Certain parts such as dns lookup need to set this to false to determine wether to use ipv4 or ipv6 reverse lookup.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9454 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 23:35:35 +00:00
brain
20b26ef72a Fix for bug #503 reported by Stealth (at last)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9453 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 22:36:20 +00:00
brain
5ec0078659 Add correct stuff so that /taxonomy can show the cloaked hosts for users in their metadata
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9452 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 21:56:45 +00:00
brain
aac846ef91 Calculate hosts on connect so theres no way around a ban on your cloak, even if you never cloak yourself even once
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9451 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 21:46:30 +00:00
brain
548883a392 Comment small API change (returning -1 from OnCheckBan to explicitly deny the ban)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9450 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 20:53:13 +00:00
brain
9d5dfe0434 Fix for bug #513
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9449 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 20:48:46 +00:00
brain
1885e88051 This now passes all the RIPEMD160 test vectors and is a complete and usable module:
[17:27] --- ripemd160 hashed password for a is 0bdc9d2d256b3ee9daae347be6f4dc835a467ffe
[17:27] --- ripemd160 hashed password for abc is 8eb208f7e05d987a9b044a8e98c6b087f15a0bfc
[17:27] --- ripemd160 hashed password for message is 1dddbe1bea18cfda41f3fa4e6e66dbbbab93774e
[17:27] --- ripemd160 hashed password for message digest is 5d0689ef49d2fae572b881b123a85ffa21595f36
[17:28] --- ripemd160 hashed password for abcdefghijklmnopqrstuvwxyz is f71c27109c692c1b56bbdceb5b9d2865b3708dbc
[17:28] --- ripemd160 hashed password for  is 9c1185a5c5e9fc54612808977ee8f548b2258d31
[17:28] --- ripemd160 hashed password for abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq is 12a053384a9c0c88e405a06c27dcf49ada62eb2b
[17:29] --- ripemd160 hashed password for ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 is b0e20b6e3116640286ed3a87a5713079b21f5189
[17:29] --- ripemd160 hashed password for 12345678901234567890123456789012345678901234567890123456789012345678901234567890 is 9b752e45573d4b39f4dbd3323cab82bf63326bfb


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9448 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 16:31:02 +00:00
brain
c492f5a987 Whoops, overwriting hash with the hex isnt a good idea
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9447 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 16:09:26 +00:00
brain
839f5721f5 Fix ripemd160 warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9446 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 15:57:47 +00:00
w00t
37f22f28a3 Add m_ripemd160 on behalf of Brain. Adds ripemd-160 hashing to our collection of providers. Will doc later.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9445 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-10 15:00:41 +00:00
w00t
ebdf1a0c6b Fix these
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9444 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-09 16:02:23 +00:00
w00t
6d6f0ef3c6 AddClient -> AddUser, to be consistant
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9443 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-09 15:47:10 +00:00
w00t
d7a0cd3db1 Move QuitUser into UserManager class, and unstaticize it. This prepares for some benchmarking lulz on object pooling I plan to do today, as well as making more sense now we *have* a manager class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9442 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-09 15:34:54 +00:00
w00t
621de565e1 Apply brain's patch for binary safety of hash providers, and remove rehash from windows project (manually applied that due to linefeed shit)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9441 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-09 10:17:28 +00:00
w00t
e58161f80d Send usermodes on whois if user is self or opered
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9440 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-09 10:14:40 +00:00
brain
3ac032f3f6 Oddness
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9439 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 23:59:48 +00:00
brain
8e8445d1c0 Extra debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9438 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 23:57:35 +00:00
brain
2e1cd4fb31 Fix authentication logic, someone forgot to change an || to an &&, because we use continue now the logic is reversed, we continue if auth method one fails AND auth method two fails
(instead of if auth method one fails OR auth method two fails)
Also, fix bug where credentials of outbound server are leaked on successful auth to other ircds behind it


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9437 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 23:27:49 +00:00
w00t
149ed936a8 Allow remote users to bypass Q:Line (why on earth wasn't this the case)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9436 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 22:55:37 +00:00
w00t
927f436c1c Don't check Q:Lines here, it will affect change to UID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9435 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 22:50:30 +00:00
w00t
66e76caaa0 Don't check Q:Lines if server is enforcing a nick change (I forgot we had a way to check this). 'Bug' (it's not really a bug, just admin stupidity) found by Kein.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9434 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 22:36:15 +00:00
w00t
32834b531c Fix a bug with /SHUN deletion (it didn't work)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9433 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 19:42:53 +00:00
w00t
ff32b2e66c CBan rewritten to use the XLine API. Untested as yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9432 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 19:42:23 +00:00
w00t
80c42b2f46 Changes needed to get open-linking working.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9431 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 19:23:18 +00:00
w00t
29800b5844 Fix compile error I introduced
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9430 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 18:58:25 +00:00
w00t
b8ddf2f3c8 Comment tweakage
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9429 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 18:54:03 +00:00
w00t
fc7dbbeb07 This comment is slightly out of date: we do write to opers now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9428 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 18:39:19 +00:00
w00t
ffa107c367 No longer deprecated, just may not be used
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9427 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 18:33:26 +00:00
brain
d125d4964a add a couple of parenthesis to the password comparison, because i couldnt easily make out the order of precedence, clarify it a bit :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9426 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 16:03:02 +00:00
w00t
eae1a96c36 Allow for open link networks (<link:name> to *) and tidy up checks here. XXX someone check my work here because this was quite untidy, so I'm not 100% I got all the logic ops correct.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9425 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 15:36:44 +00:00