summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-03-01Improve the message shown to the admin when generating SSL certs.Peter Powell
Self-signed SSL certificates are intended for testing purposes. A production server should be using a CA-signed certificate instead.
2018-02-24Merge pull request #1458 from linuxdaemon/insp20+duplicate-redir-metaPeter Powell
[2.0] Make sure banredirect metadata can not be duplicated
2018-02-24Append LDFLAGS at the same time as CPPFLAGS and CXXFLAGS.Peter Powell
This deduplicates the addition of these flags.
2018-02-17Release v3.0.0 alpha 6.Peter Powell
2018-02-17Move m_sslrehashsignal to the extra directory.Peter Powell
This module uses platform-specific behaviour that does not work on Windows.
2018-02-17Fix building on Windows (mostly).Peter Powell
2018-02-12Merge pull request #1460 from genius3000/insp20+helpop_fixPeter Powell
[2.0]: Helpop: Move extban 'U' from acting to matching
2018-02-11[2.0]: Helpop: Move extban 'U' from acting to matchinggenius3000
Already fixed in master in 8587df2
2018-02-07Import the anticaps module from inspircd-extras.Peter Powell
2018-02-07Send the ACCEPT and KEYLEN ISUPPORT tokens.Peter Powell
- 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
2018-02-02Allow the maximum length of a chanfilter message to be configured.Peter Powell
2018-02-02Add names for a bunch of numerics.Peter Powell
2018-01-29Add ERR_INVALIDMODEPARAM for responding to invalid mode params.Peter Powell
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.
2018-01-25Revert std::set changes and add duplicate checking in m_banredirect instead, ↵linuxdaemon
as requested by @Adam-
2018-01-25Fix comparator logic for ordering by channellinuxdaemon
2018-01-25Make sure banredirect metadata can not be duplicatedlinuxdaemon
2018-01-25Improve performance under load of OnDataReady and remove C-isms.systocrat
Re-use variables initialized within loop, const-ify config variables accessed repeatedly, remove eol_found label. Merges #1451.
2018-01-25Add a module which rehashes SSL modules on receiving SIGUSR1.Peter Powell
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).
2018-01-20Pass an irc::socket::sockaddrs to SocketEngine::SendTo().Peter Powell
2018-01-20Pass an irc::socket::sockaddrs to SocketEngine::Connect().Peter Powell
2018-01-20Remove duplicated code in LocalUser::GetServerPort().Peter Powell
2018-01-14Fix some minor Doxygen errors.Peter Powell
2018-01-12Release v3.0.0 alpha 5.Peter Powell
2018-01-07Fix some char signedness oversights when using bitsets.Peter Powell
2018-01-07Add user mode +z for ssl-only private messages.Shawn Smith
Closes #468.
2018-01-06Strip commas from channel keys like Charybdis and others do.Peter Powell
2018-01-06Rework message handling.Peter Powell
- 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.
2018-01-03Improve the method that blockcaps uses to block messages.Peter Powell
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.
2018-01-03Fix m_chanhistory sending the history notice directly to the user.Peter Powell
Closes #1452.
2018-01-03Make InspIRCd::Format return std::string instead of const char*.Peter Powell
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.
2017-12-31Increase the config default for <chanhistory:maxlines> to 50.Peter Powell
2017-12-31m_chanhistory: optionally exempt bots from receiving history.Michael Hazell
Sending history to some bots can cause problems as without the IRCv3 chathistory batch they have no way of knowing what messages are history and what they should respond to. Closes #1450.
2017-12-29Don't hardcode mode characters which are sent in 005 tokens.Peter Powell
2017-12-27Fix various issues with the cgiirc module.Peter Powell
- 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.
2017-12-23Use a bitset in blockcaps instead of a char array.Peter Powell
2017-12-23Use a bitset in chghost/sethost instead of a char array.Peter Powell
2017-12-23Fix User::ChangeRealHost() to change the real host properly.Peter Powell
2017-12-23Add ISUPPORT tokens for the host, line, and user length.Peter Powell
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
2017-12-23Get rid of InspIRCd::QuickExit.Peter Powell
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.
2017-12-23Merge pull request #1449 from B00mX0r/insp20Peter Powell
Fix two minor docs issues
2017-12-22Fix two minor docs issuesB00mX0r
2017-12-22Improve and modernize the SQL system API.Peter Powell
- 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.
2017-12-22Merge pull request #1446 from B00mX0r/master+wrongnumericPeter Powell
Fixed misc. instances of ERR_NOSUCHNICK instead of channel numerics Closes #1122.
2017-12-22Fixed misc. instances of ERR_NOSUCHNICK instead of channel numericsB00mX0r
Per #1122
2017-12-22Rename <security:hidewhois> to <security:hideserver>.Peter Powell
The previous name was horrible and didn't describe what the setting actually does.
2017-12-22Merge pull request #1443 from B00mX0r/master+filtershunPeter Powell
Add SHUN as a /filter action
2017-12-21Add SHUN as a /filter actionB00mX0r
This resolves #483
2017-12-21Merge pull request #1370 from clinew/insp30+openssl-crlPeter Powell
Add OpenSSL CRLs.
2017-12-20Merge pull request #1444 from B00mX0r/master+missingsnoPeter Powell
Add snomask alert on m_filter quit/part G-Line
2017-12-20Always store something in the cgiirc hostname extension.Peter Powell
This is used by modules like m_sasl to send the cgiirc hostname to services so it should contain something valid. Closes #1438.