2761 Commits

Author SHA1 Message Date
brain
798a7139ab Fixed externs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3561 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 23:21:59 +00:00
brain
aaf5226111 Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is channel->HasUser(userrec)
Yeah its the other way around to the old way, but somehow, seems less backwards to me (its also faster)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3560 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 23:16:18 +00:00
brain
ec97c162f8 Removed declarations of ancient and misspelled functions :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3559 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 21:34:11 +00:00
brain
6b2c5f92c4 cmode was declared here too - declaration removed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3558 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 21:17:38 +00:00
brain
689c27adfd cmode now returns const char* as it returns a pointer to a literal string and shouldnt be messed with
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3557 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 21:16:05 +00:00
brain
21cf60233c Got rid of all that ugly char* cast crap (todo: change docs to reflect change)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3556 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 18:59:55 +00:00
brain
b2f5fc1e32 Fixed #defines to be enums (tidier)
Removed UCMODE_PROTECT/UCMODE_FOUNDER


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3555 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 18:25:51 +00:00
brain
3d8d86daf9 Someone forgot to test compile this *whistles nonchalantly*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3554 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 17:13:36 +00:00
brain
cb3dbc978b Allow for fallback of older ircds without TS in BURST command
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3553 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 13:32:11 +00:00
brain
bd155d5308 Actually, 64.
(256-64-128) = 64 chars printable alphabet (roughly)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3552 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 13:06:07 +00:00
brain
76174ede1d chanrec::custom_modes only needs 96 values not 190
(256 - 32 - 128)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3551 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 13:05:07 +00:00
om
55e822ce85 Stupid, retarded, idiotic bug here where any PONG after the first one gets you kicked. Never picked it up cause with Xchat's lag meter the server never actually PINGed me :"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3550 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 12:43:07 +00:00
brain
18afeadae4 Changed m_sqlauth to allow more advanced encryption types
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3549 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 12:11:02 +00:00
brain
5c2954bf54 Back to 10 mins :( My clocks wont sync and i wont sacrifice 110 days uptime just for this :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3548 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 11:48:42 +00:00
brain
c351490128 Changed TS check: Abort on +- 5 mins, warn on +- 60 secs!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3547 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 11:38:31 +00:00
brain
bc1acff091 Added ConvToStr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3546 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 11:28:03 +00:00
brain
7804a29538 Typos
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3545 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 11:24:44 +00:00
brain
8ab23609af Checks for timestamps, boot server off and abort if time delay > 10 mins (the safe value used by inspircd)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3544 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 11:22:14 +00:00
brain
320fd85ef9 Removed unneccessary temporary casts to char* when casting a userrec
Expanded on comment re. WriteOpers


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3543 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 10:37:49 +00:00
w00t
f0ad6011a3 It's neat. It's tidy. It has no spaces, and almost matches our guidelines...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3542 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 03:35:21 +00:00
om
7d3c3c7852 More optimisations, memory saving, use the char* loop everywhere else seems to love so much, use short rather than int to save a little more ram
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3541 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 01:50:38 +00:00
w00t
bdff885711 Made this readable, removed spacing, etc.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3540 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 01:39:50 +00:00
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