aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release v3.0.0 alpha 6. v3.0.0a6Gravatar Peter Powell2018-02-171-1/+1
|
* Move m_sslrehashsignal to the extra directory.Gravatar Peter Powell2018-02-173-0/+4
| | | | | This module uses platform-specific behaviour that does not work on Windows.
* Fix building on Windows (mostly).Gravatar Peter Powell2018-02-177-26/+11
|
* Import the anticaps module from inspircd-extras.Gravatar Peter Powell2018-02-072-0/+326
|
* Send the ACCEPT and KEYLEN ISUPPORT tokens.Gravatar Peter Powell2018-02-074-1/+6
| | | | | | | | | | | - The ACCEPT=[count] token specifies the maximum amount of nicks which can be added to a m_callerid accept list. This token was added by ircd-ratbox in 3.0.9. - The KEYLEN=[length] token specifies the maximum length of a channel key. This token was added by ircd-ratbox in 3.1 beta. For more info see http://defs.ircdocs.horse/defs/isupport.html
* Allow the maximum length of a chanfilter message to be configured.Gravatar Peter Powell2018-02-022-5/+17
|
* Add names for a bunch of numerics.Gravatar Peter Powell2018-02-0211-38/+102
|
* Add ERR_INVALIDMODEPARAM for responding to invalid mode params.Gravatar Peter Powell2018-01-2912-48/+98
| | | | | | | | | | | | | | | Currently on invalid modes we do a combination of different things: 1. Send a custom mode-specific numeric (which often collides with other modes). 2. Send a server notice. 3. Do absolutely nothing. This new numeric is a generic way of handling invalid parameters when setting a mode that avoids all of the mistakes of the previous behaviour.
* Improve performance under load of OnDataReady and remove C-isms.Gravatar systocrat2018-01-251-15/+38
| | | | | | | Re-use variables initialized within loop, const-ify config variables accessed repeatedly, remove eol_found label. Merges #1451.
* Add a module which rehashes SSL modules on receiving SIGUSR1.Gravatar Peter Powell2018-01-252-0/+69
| | | | | | This has been imported from inspircd-extras where it was known as m_rehashsslsignal. The name has been changed slightly to match the other modules which do SSL stuff (sslmodes, sslinfo).
* Pass an irc::socket::sockaddrs to SocketEngine::SendTo().Gravatar Peter Powell2018-01-203-6/+5
|
* Pass an irc::socket::sockaddrs to SocketEngine::Connect().Gravatar Peter Powell2018-01-204-7/+6
|
* Remove duplicated code in LocalUser::GetServerPort().Gravatar Peter Powell2018-01-201-8/+1
|
* Fix some minor Doxygen errors.Gravatar Peter Powell2018-01-141-2/+2
|
* Release v3.0.0 alpha 5. v3.0.0a5Gravatar Peter Powell2018-01-121-1/+1
|
* Fix some char signedness oversights when using bitsets.Gravatar Peter Powell2018-01-073-8/+9
|
* Add user mode +z for ssl-only private messages.Gravatar Shawn Smith2018-01-074-14/+117
| | | | Closes #468.
* Strip commas from channel keys like Charybdis and others do.Gravatar Peter Powell2018-01-061-1/+14
|
* Rework message handling.Gravatar Peter Powell2018-01-0630-226/+322
| | | | | | | | | | | | | - Move all message-related types to their own header to make moving them to a cross-module events easier. - Rename OnUserMessage to OnUserPostMessage. - Rename OnText to OnUserMessage. - Replace the dest, target_type, and status parameters with the MessageTarget class. - Replace the text, exempt_list, and msgtype parameters with the MessageDetails struct. - Add echooriginal and originaltext to the MessageDetails struct to allow spam filtering to not be broken by cap echo-message.
* Improve the method that blockcaps uses to block messages.Gravatar Peter Powell2018-01-032-24/+60
| | | | | | | | | | | | | Previously it had a list of upper case letters and assumed that all other characters were lower case. This method is flawed as it can be evaded by using non-alphanumeric characters. The new method takes a list of lower case letters as well as upper case letters and ignores any letters which are not listed in one of the two lists. The majority of the code for this was borrowed from the m_anticaps module in inspircd-extras.
* Fix m_chanhistory sending the history notice directly to the user.Gravatar Peter Powell2018-01-033-1/+14
| | | | Closes #1452.
* Make InspIRCd::Format return std::string instead of const char*.Gravatar Peter Powell2018-01-034-13/+12
| | | | | | | | | | | | | Using the latter is problematic as if you don't copy the return value before calling Format again your formatted message will be overwritten by something else. This bug was observed in m_callerid where InspIRCd::Format was being used for formatting two arguments the latter of which was being overwritten with the former. We could have preserved the return type and just copied the string but then callers would have had to deallocate the string once they have finished with it which is an undesirabable burden to put on callers.
* Increase the config default for <chanhistory:maxlines> to 50.Gravatar Peter Powell2017-12-312-2/+2
|
* Don't hardcode mode characters which are sent in 005 tokens.Gravatar Peter Powell2017-12-293-3/+3
|
* Fix various issues with the cgiirc module.Gravatar Peter Powell2017-12-271-10/+22
| | | | | | | | | | | - Respect the value of <cgiirc:opernotice> when sending snotices to operators. - Write to the log file if opernotice is disabled. - Log to the correct snomask in all cases. This was caused by an oversight when merging insp20 into master. - Replace the full user mask in log messages with a uuid/ip. The WEBIRC command is sent as the first command so there will not be a nickname or username at this point.
* Use a bitset in blockcaps instead of a char array.Gravatar Peter Powell2017-12-231-4/+5
|
* Use a bitset in chghost/sethost instead of a char array.Gravatar Peter Powell2017-12-232-15/+17
|
* Fix User::ChangeRealHost() to change the real host properly.Gravatar Peter Powell2017-12-231-1/+13
|
* Add ISUPPORT tokens for the host, line, and user length.Gravatar Peter Powell2017-12-231-0/+3
| | | | | | | This allows clients to accurately predict the maximum safe length of a NOTICE or PRIVMSG and truncate/split as appropriate. As proposed at https://defs.ircdocs.horse/defs/isupport.html
* Get rid of InspIRCd::QuickExit.Gravatar Peter Powell2017-12-233-19/+9
| | | | | | | | This is just a thin wrapper around exit(). I don't think we really need it. While we are changing this code the setgroup/setuser code should be using EXIT_STATUS_CONFIG too.
* Improve and modernize the SQL system API.Gravatar Peter Powell2017-12-226-164/+245
| | | | | | | | | | | | | - Move everything into the SQL namespace and drop the SQL prefix. - Move SQLProvider::PopulateUserInfo to SQL::PopulateUserInfo. - Rename SQLEntry to SQL::Field and clean up. - Rename SQLEntries to SQL::Row. - Rename SQLerror to SQL::Error and clean up. - Rename SQLerrorNum to SQL::ErrorCode and drop the SQL_ prefix. - Rename ParamL to SQL::ParamList. - Rename ParamM to SQL::ParamMap; - Make implementing SQLQuery::OnError mandatory. - Redo most of the documentation in the sql header.
* Merge pull request #1446 from B00mX0r/master+wrongnumericGravatar Peter Powell2017-12-2218-24/+54
|\ | | | | | | | | Fixed misc. instances of ERR_NOSUCHNICK instead of channel numerics Closes #1122.
| * Fixed misc. instances of ERR_NOSUCHNICK instead of channel numericsGravatar B00mX0r2017-12-2218-24/+54
|/ | | | Per #1122
* Rename <security:hidewhois> to <security:hideserver>.Gravatar Peter Powell2017-12-227-28/+27
| | | | | The previous name was horrible and didn't describe what the setting actually does.
* Merge pull request #1443 from B00mX0r/master+filtershunGravatar Peter Powell2017-12-224-55/+122
|\ | | | | Add SHUN as a /filter action
| * Add SHUN as a /filter actionGravatar B00mX0r2017-12-214-55/+122
|/ | | | This resolves #483
* Merge pull request #1370 from clinew/insp30+openssl-crlGravatar Peter Powell2017-12-211-0/+45
|\ | | | | Add OpenSSL CRLs.
| * Add OpenSSL CRLs.Gravatar Wade Cline2017-12-141-0/+45
| | | | | | | | | | | | | | | | The 'crlfile' argument can point to a file that contains valid CRLs. The 'crlpath' argument can point to a directory which contains CRLs, albeit in OpenSSL's special hashed/symlink format. The 'crlmode' option 'chain' checks all certificates in the chain while the option 'leaf' checks only the leaf certificate in a chain.
* | Merge pull request #1444 from B00mX0r/master+missingsnoGravatar Peter Powell2017-12-201-0/+1
|\ \ | | | | | | Add snomask alert on m_filter quit/part G-Line
| * | Add snomask alert on m_filter quit/part G-LineGravatar B00mX0r2017-12-191-0/+1
| | | | | | | | | | | | Resolves an oversight of #1264
* | | Merge pull request #1445 from B00mX0r/master+nickmsgGravatar Peter Powell2017-12-202-2/+3
|\ \ \ | |/ / |/| | Clarify error message when attempting to /NICK while banned
| * | Clarify error message when attempting to /NICK while bannedGravatar B00mX0r2017-12-192-2/+3
|/ /
* | Merge pull request #1442 from B00mX0r/master+map_versionGravatar Peter Powell2017-12-195-1/+24
|\ \ | | | | | | Show server versions in /MAP for opers
| * | Show server versions in /MAP for opersGravatar B00mX0r2017-12-195-1/+24
| | | | | | | | | | | | This resolves #1203
* | | Use GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250.Gravatar Peter Powell2017-12-191-1/+1
|/ /
* | Only show a duration in m_chanhistory's notice if one is set.Gravatar Peter Powell2017-12-161-2/+5
| | | | | | | | Closes #1235.
* | Remove usage of deprecated API members in m_ssl_openssl.Gravatar Peter Powell2017-12-161-5/+19
|/ | | | Closes #1440.
* Don't allow users to set a zero channel limit.Gravatar Peter Powell2017-12-114-2/+14
| | | | Closes #451.
* Release v3.0.0 alpha 4. v3.0.0a4Gravatar Peter Powell2017-12-111-1/+1
|
* Merge branch 'insp20' into master.Gravatar Peter Powell2017-12-113-8/+2
|\