7899 Commits

Author SHA1 Message Date
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
w00t
ba713cdc07 Add todo, add server name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9424 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 15:05:51 +00:00
w00t
94ab2b6eb5 Remote REHASH stuff, this drove me nuts but should probably work now.. thx brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9423 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 15:00:28 +00:00
w00t
395a610c2c Update syntax
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9422 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 12:07:15 +00:00
w00t
94e530b1cb Finally apply my patch simplifying RSQUIT. Fixes bug #452, reported by Mark. This won't be backported.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9421 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 12:05:13 +00:00
w00t
ab37431218 Fix compile error
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9420 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 12:04:38 +00:00
w00t
2a14a087c4 REG_ALL check is not required, since OnUserConnect is triggered after NICK/USER recieved, but we don't want to bother trying to SHUN remote users too, so check IS_LOCAL in the connection event
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9419 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 10:29:45 +00:00
w00t
1ff54f0c4d SHUN: check SHUN on connect, extend user with shunned metadata if they match, and disallow any commands if metadata exists instead of constantly rechecking bans per-command.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9418 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 10:23:35 +00:00
brain
e8aa1caa96 Ugh, fixify. msms?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9417 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08 00:01:14 +00:00
brain
0ad10d75b9 When map says 0ms, make it read "<1ms" instead of 0, 0 doesnt make ANY sense at all, transfer of data is not instant! Also tidy up headers for this file, we include far more of spanningtree than we actually use
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9416 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 23:58:28 +00:00
brain
9b169c24b1 Fix for bug #510
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9415 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 23:48:26 +00:00
brain
efac11ae7a Hosts vector not cleared on rehash, made rehashing for changes impossible
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9414 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 23:02:02 +00:00
w00t
3481bf3610 SHUN works (locally at least)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9412 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:49:17 +00:00
w00t
43ba6d2a52 Hook events properly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9411 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:39:19 +00:00
w00t
e9b343457d Add a factory to produce shuns, don't autoapply to userlist, etc.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9410 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:34:46 +00:00
brain
ef30d86d11 Add extra stuff for w00t, AutoApplyToUserList method for XLineFactory
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9409 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:30:45 +00:00
w00t
7317c9184c Use SHUN, not S, try match on std::string for removal
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9408 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:17:30 +00:00
w00t
ead986d685 Unrestrict users before REG_ALL
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9407 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:14:21 +00:00
brain
db3e7d6cd7 Make it work properly, too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9406 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:03:12 +00:00
brain
5fb4537721 Show server kills with correct origin, UNLESS hidden server in whois is set
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9405 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:02:46 +00:00
brain
f78a6a90b1 This should probably be tested, but makes a whole lot more sense like this (users.cpp)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9404 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 22:00:49 +00:00
w00t
0b14c8ef1c Show SID on /map
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9403 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 18:13:58 +00:00
brain
20cc65ddf5 remote MAP reply is backwards :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9402 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 18:00:28 +00:00
w00t
cf1aa8c36d Use server names for introduction of servers, not SIDs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9401 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 16:50:20 +00:00
brain
18310fc8b7 We were lucky this one didnt bring down the whole devnet (see cmd_part.cpp diff)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9400 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 16:18:32 +00:00
w00t
c1c6d3f447 Typo x 2 (ta Zaba)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9399 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 14:45:41 +00:00
w00t
b9b768d654 Typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9398 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 14:45:01 +00:00
w00t
5f68c4e912 Convert this to use the new XLine API, this results in fairly significant lessening of code complexity.. also now more up to date with our recent coding style.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9397 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07 14:35:50 +00:00