2739 Commits

Author SHA1 Message Date
om
ec44d7c04e Avoid some ugly casts and save (well..system dependant..) about...3 bytes of ram! :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3539 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 01:04:03 +00:00
om
b8734f923f Speed up and deuglify the second part of CompressModes(), stop it searching for a character three times when it only needs to once, stop it allocating an ugly static char[2] it didn't need, and stop it creating a std::string it didn't need either
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3538 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 00:55:53 +00:00
w00t
0b6667568e Remove some tabbing, remove a typo, use Exit() rather than exit()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3537 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 00:33:05 +00:00
brain
033640feb2 w00t may want to check this works
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3536 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 23:41:45 +00:00
brain
9ea4af047d *TEST* Server::DumpText - Dump a *stringstream* to a user with a std::string prefix, splitting at 512 boundaries.
Much more useful than cannibalizing a specialized function


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3535 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 23:07:47 +00:00
w00t
22aae180a1 For the record, it's 17 lines - not 5.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3534 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 23:01:39 +00:00
brain
4f1945d30b Made split_chlist available for external use from commands.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3533 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 22:25:34 +00:00
brain
594f7f6c01 What MUPPET made stdin, stdout and stderr FILE* pointers rather than ints?!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3532 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 22:16:41 +00:00
brain
9af07046bf close stdin, stderr and stdout rather than freopen to /dev/null
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3531 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 22:15:36 +00:00
brain
c03f650283 Took out space in version identifier that might break stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3530 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 21:47:51 +00:00
brain
003fa072fc Safety checking (a really really clever trick btw) in CullList, to make sure that the user we're removing IS the user that was marked for deletion X seconds ago, even if the user has since quit, to be replaced by another unfortunate wretch who was given the same pointer address (eeep)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3529 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 20:21:54 +00:00
brain
1dcf66e624 Buffer flush time now under 0.5 secs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3528 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 19:45:21 +00:00
brain
4ae5336d9b Flush user buffers more often (every 30 iterations)
Run whowas hash maintainance every hour


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3527 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 19:37:04 +00:00
brain
0e93bbd2c9 Too many 'end of whowas' numerics
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3526 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 19:23:56 +00:00
brain
990c9795ef Whois typo fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3525 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 19:18:46 +00:00
brain
2bb1208eae Typos round one
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3524 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 19:14:23 +00:00
brain
1e639377cb Whowas refactor - probably wont compile yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3523 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 19:11:50 +00:00
brain
8dc8387e8c NETBURSTS ARE STABLE AGAIN :D
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3522 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 18:05:37 +00:00
brain
85f9d57f0f Tweaks to socket engine, faster buffer flush and hopefully more stable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3521 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 18:00:45 +00:00
brain
bac3bedc9f true and false transposed in new code
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3520 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 17:37:17 +00:00
brain
7d19db88b5 Exception to the rules for EAGAIN
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3519 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 17:34:02 +00:00
brain
53f280ed2e Check for write errors in inspsocket (this is probably causing excessive cpu use when we have a large buffer to flush but a write error has occured (which we missed))
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3518 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 17:32:55 +00:00
brain
91ca232998 Optimizations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3517 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 17:16:55 +00:00
brain
9ec715957b Fixed timedbans (new mode parser didnt like being passed const char* elements as it likes to change them inplace)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3516 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 12:25:25 +00:00
brain
8f79485a75 Took strlen's out of fjoin
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3515 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 12:11:25 +00:00
brain
34b0ca01b6 Improved userlist to avoid strlen
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3514 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 12:05:34 +00:00
brain
5dd6b4e97d Tidying, strlen, strcasecmp where not needed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3513 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 11:55:22 +00:00
brain
cb38f65d8f TOPIC optimizations, fixes to mode setting with new custom_modes system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3512 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 11:37:57 +00:00
brain
2dab2f5663 Checking of user/nick/pass without strncmp! (compare object pointers in the command map!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3511 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 11:32:10 +00:00
brain
412ffebede Fixed to work properly with new refactoring
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3510 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 11:12:56 +00:00
brain
143af37ff4 Fixed typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3509 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 11:03:16 +00:00
brain
6fef928da8 *TEST CODE* Faster custom mode set/unset
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3508 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 10:58:56 +00:00
brain
148835bea3 Added a 'max depth' to stop recursive issue
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3507 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 10:25:40 +00:00
brain
16a56843b0 Fixed issue with parameterless module modes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3506 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 10:19:55 +00:00
om
b4c78897df Optimisation of optimisation :P ty w00tie
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3505 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 09:56:19 +00:00
brain
3b7216d69b Different way of displaying squit server group
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3504 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 09:19:20 +00:00
w00t
272ba5d111 More work on /check.. now gives basic information on a user, no channel list yet - and port number doesn't display.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3503 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 01:34:26 +00:00
brain
0d6245e271 No need to be inline in the include
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3502 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 01:21:16 +00:00
brain
e307d5edb1 Fixed wtf-ery of Modules::SendTo - did i write this before WriteServ???
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3501 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 00:45:14 +00:00
brain
0031a0535d Removed a lot of total craq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3500 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 00:40:07 +00:00
w00t
9f0bf03fbe Initial revision of /check - doesn't do anything yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3499 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 00:12:39 +00:00
brain
283ad2ba9f Improved ProcessParameters (removed strlen)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3498 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 00:11:23 +00:00
brain
496f9df539 Changed return to break in mainloop for better efficiency
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3497 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06 22:34:39 +00:00
brain
59f0b6afc9 Tidied (and COMMENTED) CommandHandler::LoopCall() -- commit so that i can test on brainbox
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3496 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06 18:34:29 +00:00
brain
ae57bb2c42 maxbans fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3495 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06 11:03:23 +00:00
brain
cf0748219e MaxBans -> maxbans
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3494 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06 10:58:23 +00:00
brain
1da4da1d66 CM -> CM1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3493 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06 10:54:04 +00:00
brain
7e03928ccd select not case
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3492 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06 10:50:54 +00:00
brain
480be29a95 Tidied GetMaxBans to leave the ConfigReader subsystem alone
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3491 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06 10:44:42 +00:00
brain
814f144065 Tidyups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3490 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06 10:34:14 +00:00