aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge the latest changes from insp20 into master.Gravatar Peter Powell2017-10-121-2/+0
|\
| * Use DLLManager::RetrieveLastError() on all platforms.Gravatar Peter Powell2017-08-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | This prevents a bug where we send malformed messages to the client when dlerror() returns an error message containing more than one line. This has been observed on macOS but probably will happen on other UNIX systems too. This also fixes a potential problem where dlerror() returns NULL and converting it to std::string causes a crash. I can't see any way that this might happen but it is better to be safe than sorry.
* | Fix RPL_SERVERVERSION treating the modes as a single parameter.Gravatar Peter Powell2017-10-041-4/+4
| |
* | Convert Disabled[CU]Modes to use a bitset instead of a char array.Gravatar Peter Powell2017-09-181-2/+2
| |
* | Add ModeParser::IsModeChar to standardise mode validation.Gravatar Peter Powell2017-09-181-0/+2
| |
* | Raise the default listmode limit to 100 from 64.Gravatar Peter Powell2017-09-141-1/+1
| | | | | | | | | | | | | | | | | | 64 is a rather restrictive limit especially considering how fast channels can accumulate bans. In fact, #InspIRCd hit the ban limit in just over a year. Having a low limit might have made sense when memory was expensive but the average IRC server should be able to handle this fine now.
* | Change FailedPortList to store a sockaddrs/int instead of string.Gravatar Peter Powell2017-09-122-3/+3
| |
* | Store the server endpoint as a sockaddrs in ListenSocket.Gravatar Peter Powell2017-09-121-4/+1
| |
* | Get rid of irc::sockets::satoap().Gravatar Peter Powell2017-09-121-8/+0
| | | | | | | | | | This function is being misused in all but one scenario. It isn't really worth keeping IMO.
* | Move operquit out of the core and into core_user.Gravatar Peter Powell2017-09-111-4/+0
| |
* | Implement support for configurable casemapping & default to ASCII.Gravatar Peter Powell2017-09-081-0/+4
| |
* | Move RPL_SYNTAX to 650 to prevent a collision with RPL_TEXT.Gravatar Peter Powell2017-09-061-1/+2
| | | | | | | | | | Also move the command name to a parameter so that it is more easily parseable by software.
* | Convert uncontroversial anonymous numerics to use constants.Gravatar Peter Powell2017-09-061-2/+0
| |
* | Change the numerics used by /COMMANDS to avoid a collision.Gravatar Peter Powell2017-09-061-3/+0
| |
* | Add support for length arguments in getString.Gravatar Peter Powell2017-09-031-1/+1
| |
* | Move <dns:timeout> out of the core.Gravatar Peter Powell2017-09-032-6/+1
| |
* | Add a ConfigTag* parameter to the ServerPaths constructor.Gravatar Peter Powell2017-09-031-5/+1
| | | | | | | | | | This is used to directly read the settings from the config tag like how ServerLimits works.
* | Update a bunch of references to the old command modules.Gravatar Peter Powell2017-08-271-1/+1
| |
* | Remove some outdated documentation from the SocketEngine class.Gravatar Peter Powell2017-08-261-11/+1
| |
* | Fix a bunch of Doxygen warnings.Gravatar Peter Powell2017-08-2610-17/+18
| |
* | Remove <alias:matchcase> and associated code.Gravatar Peter Powell2017-08-131-4/+0
| | | | | | | | This was never documented and seems pretty useless.
* | Merge pull request #1271 from SaberUK/master+exemptionGravatar Peter Powell2017-07-272-9/+58
|\ \ | | | | | | Move the OnCheckExemption hook out of the core.
| * | Move the OnCheckExemption hook out of the core.Gravatar Peter Powell2017-03-202-9/+58
| | |
* | | Replace the deprecated MAXBANS token with MAXLIST.Gravatar Peter Powell2017-07-241-0/+4
| | |
* | | Add DEFAULT_LIST_SIZE for the default list mode size.Gravatar Peter Powell2017-07-241-0/+3
| | |
* | | Improve the numerics we send in response to MAP.Gravatar Peter Powell2017-07-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | - Send the same numerics as ircu/ircd-hybrid/charybdis/ratbox/etc. These are much more widespread and predate the Unreal numeric we currently send. - Move RPL_MAPUSERS to 018. This numeric is unused and does not conflict with RPL_PRIVS like our current one does.
* | | Merge pull request #1267 from SaberUK/master+configGravatar Peter Powell2017-07-123-8/+8
|\ \ \ | | | | | | | | Store config values in a map instead of a unique vector of pairs.
| * | | Make the config system case insensitive.Gravatar Peter Powell2017-02-042-3/+3
| | | |
| * | | Store config values in a map instead of a unique vector of pairs.Gravatar Peter Powell2016-12-082-6/+6
| | | |
* | | | Add CXX11_OVERRIDE to overridden members that lack it.Gravatar Peter Powell2017-07-126-19/+19
| | | | | | | | | | | | | | | | | | | | This fixes a ton of warnings when building on compilers that default to C++11 or newer.
* | | | Merge pull request #1337 from SaberUK/master+mergeGravatar Peter Powell2017-07-121-1/+1
|\ \ \ \ | | | | | | | | | | Merge v2.0.23 and v2.0.24 into master.
| * \ \ \ Merge v2.0.23 and v2.0.24 into master.Gravatar Peter Powell2017-07-091-1/+1
| |\ \ \ \ | | | |_|/ | | |/| |
| | * | | Fix some compiler warnings.Gravatar Peter Powell2017-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | warning: macro name is a reserved identifier [-Wreserved-id-macro] warning: extra ';' after member function definition [-Wextra-semi]
* | | | | Improve and centralize socket engine event counters.Gravatar Robin Burchell2017-07-111-4/+12
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The write counters were close to useless because they were only incremented on a write "event" which is only triggered when writing would block. Read handling was a little more useful in that all reads must happen through the socket engine, so these were happening at the correct time, but we can clean this up by doing it in the SE itself rather than each platform port. This means that both read and write events are now easily and usefully defined as "a syscall of either read or write was attempted". We also count empty read and write events as being an event, because they still were an attempt to poll a socket in some way. This may help to identify "bad" code which is repeatedly trying to read a socket for some reason. Lastly, we check for failed read/write calls, and log them as an error event. A lot of the time, this is how sockets are determined as being disconnected (ie. at read/write time). While we're at it, split Update() in two to make the calls more self-describing. This has no real impact since only one call is made at a time anyway.
* | | / core_dns: add support for txt recordsGravatar Adam2017-04-231-0/+2
| |_|/ |/| | | | | | | | This might be used later by m_dnsbl to get reasons for listings
* | | Allow <log> tags to specify how often logs should be flushed.Gravatar Peter Powell2017-02-281-2/+6
| | | | | | | | | | | | Also use the behaviour behind this to fix #1290.
* | | cmd_mode Switch to a numeric for showing modes of other usersGravatar Attila Molnar2016-12-301-0/+3
| | |
* | | Clean up User::FormatModes(), rename to GetModeLetters()Gravatar Attila Molnar2016-12-301-3/+5
| | | | | | | | | | | | Prefix the returned string with '+'
* | | Make ModeHandler::GetUserParameter() const, accept const UserGravatar Attila Molnar2016-12-302-2/+2
| | |
* | | Make all User::IsModeSet() methods const, accept const ModeHandlerGravatar Attila Molnar2016-12-301-6/+6
| | |
* | | Deduplicate nickname overruling codeGravatar Attila Molnar2016-12-301-0/+6
| | | | | | | | | | | | Create LocalUser::OverruleNick(), call it from User::ChangeNick() and the UID handler in spanningtree
* | | Remove remaining doxygen doc for "pcnt" parametersGravatar Attila Molnar2016-12-301-1/+0
| |/ |/|
* | Allow classes to take a port range.Gravatar Peter Powell2016-10-251-0/+5
| |
* | Update stuff for the new versioning system.Gravatar Peter Powell2016-09-021-2/+2
| |
* | Bump version to 3.0 in comments and messagesGravatar Attila Molnar2016-09-021-2/+2
| |
* | Fix Windows build and most MSVC warningsGravatar Attila Molnar2016-09-021-1/+1
| |
* | Fix whitespace issuesGravatar Attila Molnar2016-09-021-3/+3
| |
* | Return std::string from Membership::GetAllPrefixChars()Gravatar Attila Molnar2016-08-301-1/+1
| |
* | Change Membership:hasMode() to accept a PrefixModeGravatar Attila Molnar2016-08-301-4/+4
| |
* | Pass the ModeHandler to User::HasModePermission()Gravatar Attila Molnar2016-08-301-6/+4
| | | | | | | | Mark the method as const