summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-07-20Okay, this is getting towards working now. It just needs the API ↵om
finishing...everything in the backend part seems to be working okay git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4456 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Removed all that lastcreate and wantclose craq from dns.cpp (WHAT THE FUCK ↵brain
WERE THE FIREDNS GUYS SMOKING) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4454 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Stability fixbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4453 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Change stats recv/send to double, so they can hold truly massive numbers of ↵brain
transferred bytes (they would overflow after about 6 weeks on a busy net otherwise) Fix some warnings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4450 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Change counters to unsigned long to prevent overflow to negative countsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4449 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Increase size to unsigned longbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4448 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Completely remove need for memset.brain
When we uniq_id++, we can wrap to 0 theoretically after 4 billion output messages, HOWEVER, when we do, 0 will be a valid comparison within the array :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4447 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Set 'copyright' property on all items, informational only, effects nothingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4446 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Change propertiesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4445 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Test changebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4444 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Add #include <sys/select.h> to select engine, we probably need itbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4443 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Fix MOTDbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4442 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Whoops, forgot SocketEngine::SocketEngine() gets called recursively from ↵brain
*Engine::*Engine() (where * is the type being built) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4441 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Fix typo in kqueue enginebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4440 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19* Seperate out socket engines into derived classes of SocketEngine.brain
* Add a classfactory SocketEngineFactory to create a new socketengine of the configured type * Implement configure hax to compile only the required socketengine and the base class * Eliminates ugly defines, and is more in line with C++ ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4439 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Change size of already_sent from char to int to work with uniq_id valuebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4438 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Speed up writecommon, writecommon_noformat, writechannel, etc (by quite a ↵brain
bit) - eliminate 99.99999999999% of the memsets git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4437 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Special checking for muppet providers that make their reverse resolution ↵brain
resolve back to the same reverse resolution. *WHY* DO PEOPLE IN CONTROL OF THE RDNS RECORDS EVEN *ALLOW* SUCH LUNACY?! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4436 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Fix motd with new bufferingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4434 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-18Tried to implement sprintf that returns std::string of any size, realized it ↵brain
would scale like unreal scales to ircnet (e.g. it wouldnt!) so took it back out. Moved chop() functionality into userrec::AddWriteBuf and make it nicer (no strlen) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4433 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Tweaks for nonblocking dnsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4432 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Improved connect time by not referencing the hash for each user value, store ↵brain
a temp pointer git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4431 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Ignore empty lines, don't try and process them as commandsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4430 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Only attempt forward lookup if the user still existsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4428 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Remove some castsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4427 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Craq removal service, at your servicebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4426 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16i'm doing this in increments, because if i try and change too much at once, ↵brain
it breaks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4425 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Fixing sendq craskbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4424 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Update to new API - I think this is right, compiles...om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4422 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Fixed it myself so i can carry on coding1brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4421 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16More WHOw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4420 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16WHO refactoring. In progress currently.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4419 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16*Changed user input/output buffering to incur less copiesbrain
*Fix warnings in command_parse git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4418 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Change to a DIFFERENT HOOK for added goodness.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4417 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Document irc::commasepstream and irc::tokenstreambrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4414 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Document loopcall (its still complicated in concept, but now easier to read ↵brain
and possibly easier to understand) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4413 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Created new class irc::commasepstream.brain
Will read comma seperated lists and works identically to irc::tokenstream It's re-entrant so we can run two of them together for JOIN git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4412 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Adjustmentbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4410 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Fix socket leak properly this timebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4405 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Fix case sensitive commands issue due to new std::string based parser, ↵brain
improve the craq disabled commands check that was potentially O(n) where n is the number of disabled commands (erk) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4404 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵brain
parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16MAJOR tidy of line parser, some parts rewritten and major chunks removedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4402 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Fixes/codes of the query queue, various prototypes and stuff...mostly ↵om
commited so I can do other stuff without typing the paths out manually git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4401 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16const the std::string reference in tokenstream's constructorom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4400 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Disable test suitebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4399 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Improved this a lotbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4398 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16This should be faster, we read it like a stream now with GetToken until ↵brain
GetToken returns "". The optimizations done by gcc means theres only one std::string constructor call per token, which is mmm yum. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4397 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16irc::tokenstream is a token parser which using std::string and std::vector ↵brain
builds a list of tokens using irc parsing rules. e.g.: :arse PRIVMSG #chan :foo bar baz becomes a[0] = ":arse", a[1] = "PRIVMSG", a[2] = "#chan", a[3] = "foo bar baz". *** SOMEONE *** needs to optimize this or at least verify its neatness (without making it total craq and unreadable). Feel free to mess with my code. Any optimizations you make, run them against the COMMENTED OUT TEST SUITE at the top of main() in src/inspircd.cpp and ensure ALL output is the same with no crashes. (note: if you comment out and build with the test suite, all inspircd will do is output test data and exit!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4396 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-15Removed GCC2 checks as we havent supported gcc2 for yearsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4394 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-143.3 -> 3.4 fix (the 3.3 stuff was actually craq)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4393 e03df62e-2008-0410-955e-edbf42e46eb7