summaryrefslogtreecommitdiff
path: root/src/modules
Commit message (Collapse)AuthorAgeFilesLines
* Cast these to shut up compilerGravatar w00t2008-04-131-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9484 e03df62e-2008-0410-955e-edbf42e46eb7
* Trunk fix for bug #505 reported by nenolodGravatar brain2008-04-121-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9468 e03df62e-2008-0410-955e-edbf42e46eb7
* In visual studio, CRT crashes when strftime() is given an invalid format ↵Gravatar brain2008-04-121-2/+2
| | | | | | 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
* Fix crash in m_stripcolor on windows when the colour code is the first item ↵Gravatar brain2008-04-121-4/+11
| | | | | | on a line git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9465 e03df62e-2008-0410-955e-edbf42e46eb7
* Replace here tooGravatar brain2008-04-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9463 e03df62e-2008-0410-955e-edbf42e46eb7
* Add correct stuff so that /taxonomy can show the cloaked hosts for users in ↵Gravatar brain2008-04-101-2/+13
| | | | | | their metadata git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9452 e03df62e-2008-0410-955e-edbf42e46eb7
* Calculate hosts on connect so theres no way around a ban on your cloak, even ↵Gravatar brain2008-04-101-78/+77
| | | | | | if you never cloak yourself even once git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9451 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #513Gravatar brain2008-04-101-2/+53
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9449 e03df62e-2008-0410-955e-edbf42e46eb7
* This now passes all the RIPEMD160 test vectors and is a complete and usable ↵Gravatar brain2008-04-101-3/+8
| | | | | | | | | | | | | | | | | 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
* Whoops, overwriting hash with the hex isnt a good ideaGravatar brain2008-04-101-10/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9447 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix ripemd160 warningsGravatar brain2008-04-101-7/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9446 e03df62e-2008-0410-955e-edbf42e46eb7
* Add m_ripemd160 on behalf of Brain. Adds ripemd-160 hashing to our ↵Gravatar w00t2008-04-101-0/+496
| | | | | | collection of providers. Will doc later. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9445 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix theseGravatar w00t2008-04-095-7/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9444 e03df62e-2008-0410-955e-edbf42e46eb7
* Move QuitUser into UserManager class, and unstaticize it. This prepares for ↵Gravatar w00t2008-04-0914-19/+20
| | | | | | 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
* Apply brain's patch for binary safety of hash providers, and remove rehash ↵Gravatar w00t2008-04-093-6/+6
| | | | | | 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
* OddnessGravatar brain2008-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9439 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra debugGravatar brain2008-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9438 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix authentication logic, someone forgot to change an || to an &&, because ↵Gravatar brain2008-04-081-4/+15
| | | | | | | | | | 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
* Fix a bug with /SHUN deletion (it didn't work)Gravatar w00t2008-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9433 e03df62e-2008-0410-955e-edbf42e46eb7
* CBan rewritten to use the XLine API. Untested as yet.Gravatar w00t2008-04-081-147/+104
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9432 e03df62e-2008-0410-955e-edbf42e46eb7
* Changes needed to get open-linking working.Gravatar w00t2008-04-082-17/+29
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9431 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix compile error I introducedGravatar w00t2008-04-081-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9430 e03df62e-2008-0410-955e-edbf42e46eb7
* Comment tweakageGravatar w00t2008-04-082-5/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9429 e03df62e-2008-0410-955e-edbf42e46eb7
* This comment is slightly out of date: we do write to opers now.Gravatar w00t2008-04-081-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9428 e03df62e-2008-0410-955e-edbf42e46eb7
* No longer deprecated, just may not be usedGravatar w00t2008-04-081-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9427 e03df62e-2008-0410-955e-edbf42e46eb7
* add a couple of parenthesis to the password comparison, because i couldnt ↵Gravatar brain2008-04-081-2/+2
| | | | | | 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
* Allow for open link networks (<link:name> to *) and tidy up checks here. XXX ↵Gravatar w00t2008-04-081-63/+76
| | | | | | 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
* Remote REHASH stuff, this drove me nuts but should probably work now.. thx brainGravatar w00t2008-04-084-65/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9423 e03df62e-2008-0410-955e-edbf42e46eb7
* Update syntaxGravatar w00t2008-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9422 e03df62e-2008-0410-955e-edbf42e46eb7
* Finally apply my patch simplifying RSQUIT. Fixes bug #452, reported by Mark. ↵Gravatar w00t2008-04-081-52/+24
| | | | | | This won't be backported. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9421 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix compile errorGravatar w00t2008-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9420 e03df62e-2008-0410-955e-edbf42e46eb7
* REG_ALL check is not required, since OnUserConnect is triggered after ↵Gravatar w00t2008-04-081-3/+3
| | | | | | 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
* SHUN: check SHUN on connect, extend user with shunned metadata if they ↵Gravatar w00t2008-04-081-15/+17
| | | | | | 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
* Ugh, fixify. msms?Gravatar brain2008-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9417 e03df62e-2008-0410-955e-edbf42e46eb7
* When map says 0ms, make it read "<1ms" instead of 0, 0 doesnt make ANY sense ↵Gravatar brain2008-04-071-15/+5
| | | | | | 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
* Hosts vector not cleared on rehash, made rehashing for changes impossibleGravatar brain2008-04-071-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9414 e03df62e-2008-0410-955e-edbf42e46eb7
* SHUN works (locally at least)Gravatar w00t2008-04-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9412 e03df62e-2008-0410-955e-edbf42e46eb7
* Hook events properly.Gravatar w00t2008-04-071-5/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9411 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a factory to produce shuns, don't autoapply to userlist, etc.Gravatar w00t2008-04-071-4/+30
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9410 e03df62e-2008-0410-955e-edbf42e46eb7
* Use SHUN, not S, try match on std::string for removalGravatar w00t2008-04-071-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9408 e03df62e-2008-0410-955e-edbf42e46eb7
* Unrestrict users before REG_ALLGravatar w00t2008-04-071-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9407 e03df62e-2008-0410-955e-edbf42e46eb7
* This should probably be tested, but makes a whole lot more sense like this ↵Gravatar brain2008-04-071-2/+3
| | | | | | (users.cpp) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9404 e03df62e-2008-0410-955e-edbf42e46eb7
* Show SID on /mapGravatar w00t2008-04-071-10/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9403 e03df62e-2008-0410-955e-edbf42e46eb7
* remote MAP reply is backwards :pGravatar brain2008-04-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9402 e03df62e-2008-0410-955e-edbf42e46eb7
* Use server names for introduction of servers, not SIDsGravatar w00t2008-04-071-6/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9401 e03df62e-2008-0410-955e-edbf42e46eb7
* Typo x 2 (ta Zaba)Gravatar w00t2008-04-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9399 e03df62e-2008-0410-955e-edbf42e46eb7
* TypoGravatar w00t2008-04-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9398 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert this to use the new XLine API, this results in fairly significant ↵Gravatar w00t2008-04-071-128/+84
| | | | | | 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
* Add m_shun from third party to 1.2, update it to compile (currently ↵Gravatar w00t2008-04-071-0/+230
| | | | | | untested..) and fix a printf-bug in the process git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9396 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix fake direction in TOPIC, you cant use a uuid as a command origin in the ↵Gravatar brain2008-04-061-1/+5
| | | | | | send functions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9393 e03df62e-2008-0410-955e-edbf42e46eb7