528 Commits

Author SHA1 Message Date
om
e8ad4c8cb0 split_clist will never send lines over 512 chars, also should be faster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3804 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-03 10:22:03 +00:00
om
c8cf429f7b Undo me screwing stuff up
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3797 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-02 18:25:11 +00:00
om
0a6ee7c4af Add amd64/linux to list of OS'es tested, but mainly CIA test :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3796 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-02 18:13:21 +00:00
om
2c228fe6eb Add configuration option <options:operspywhois> to set if opers see invisble and private channels in /whois, also clean up the code for whois a bit, removing more uneccessary casts.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3789 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-30 22:08:26 +00:00
brain
5d942eaf95 Regression for buffering of sockets
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3760 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-26 14:20:57 +00:00
brain
acf64694a6 Allow adding of new client ports via /REHASH.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3731 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-18 18:31:03 +00:00
brain
883c04a08a Removal of ancient TRUE/FALSE #defines (C-ish stuff)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3700 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-13 13:42:56 +00:00
brain
572a7b503b Commented a lot of stuff that hasnt been commented since 1.0.2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3695 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-12 18:03:02 +00:00
brain
3a7fa1660c Const refs (this is about the last of them in the core api)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3694 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-12 16:56:02 +00:00
brain
ced58c3be3 Renamed to chanrec::modes
Renamed IsCustomModeSet to IsModeSet
GetModeParameter will now return the channel limit (as a string) for a request for mode 'l' and the channel key for a request for mode 'k'.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3692 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-12 14:49:30 +00:00
brain
988568f3d1 *NEEDS TESTING* changed binarymodes to use the custom_modes entries
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3691 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-12 14:26:15 +00:00
brain
c738817483 Removed chanrec::binarymodes - insp wont compile atm do not use :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3690 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-12 13:38:16 +00:00
brain
5fa0e83de4 Complete removal of all stl stuff here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3686 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11 20:38:15 +00:00
brain
43b4a302d4 Completely removed the deque
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3685 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11 20:08:38 +00:00
brain
57e27d97fa Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3669 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11 18:02:11 +00:00
brain
ba1d557ee3 Added method to check if an fd is in the socketengine or not
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3667 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11 17:47:47 +00:00
brain
871dd3c93b Missed some stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3664 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11 16:56:07 +00:00
brain
a323e20162 const std::string &
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3663 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11 16:48:45 +00:00
brain
9a526c77cc Start of conversion to const refs for std::strings in module api - A LOT OF STUFF WONT WORK YET
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3654 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11 14:47:26 +00:00
brain
a40469c454 Tidyup by making some thing sprintf only once rather than n times (where n is number of targets)
String reference stuff for one function


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3653 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11 14:05:57 +00:00
brain
4aaf01aafa Tidyup and move ConvToStr to a publically accessible place
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3640 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 17:51:26 +00:00
brain
024048d646 Moved more stuff into right places
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3637 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 17:39:19 +00:00
brain
335ab9f041 Mass tidyup of ServerConfig::Read and stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3634 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 17:18:15 +00:00
om
29537d94fe Another const reference conversion, and remove redundant declaration of userrec* Find() from globals.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3633 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 16:22:41 +00:00
brain
f5a2f43fc2 Test stuff for improved multi-tags in core
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3632 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 16:22:09 +00:00
brain
080629c5a1 Added MultiConfig for multiple-occurance config items
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3631 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 15:05:46 +00:00
brain
002ee20d3d Missing a changeover
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3629 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 12:27:15 +00:00
brain
b041a609e4 Revert to string but return a reference, should be about the same speed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3628 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 12:26:14 +00:00
brain
57f498f804 Faster CullItem/CullList using strdup rather than copying a std::string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3626 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 12:13:19 +00:00
brain
af8c5c23c9 const references
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3624 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 12:02:29 +00:00
brain
da2ad810d2 Support for hostnames in <bind> tag (so long as the hostname resolves to a locally bindable ip)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3621 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 11:50:03 +00:00
brain
cd8e526089 Moved typedefs etc into the header where they belong
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3617 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 00:40:11 +00:00
brain
0a7f4a545c Improvements
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3614 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 00:25:34 +00:00
om
98ebe62da8 More const references, this is nearly it apart from the module API..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3608 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 23:04:01 +00:00
om
4ac0ccc06c Convert more by-values to const references, optimise ConfigReader a bit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3606 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 21:58:54 +00:00
om
4fa0251cfb Changing by-value parameters to const references
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3605 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 21:11:50 +00:00
brain
0cf08426b2 Speedups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3602 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 20:16:43 +00:00
brain
7a3d08f06c Tidyup to pass some stuff by reference (much faster, no copy involved)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3601 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 20:11:07 +00:00
brain
23101be0f2 UM_WALLOPS had value 3 which was a combination of UM_SERVERNOTICE and UM_INVISIBLE :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3591 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 14:18:33 +00:00
brain
c330b24501 Added userrec::modebits - fast way of checking if user has +swi rather than an icky strchr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 13:21:35 +00:00
brain
c2a5839bcb Probably wont compile yet - purge_empty_channels refactor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3579 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 11:24:30 +00:00
brain
33df390bff Removed deprecated Server::IsOnChannel (was a C++-ish wrapper to the C-ish has_channel, no longer needed)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3562 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 23:26:30 +00:00
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
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