aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Move a bunch of optional module numerics to the module source file.Gravatar Peter Powell2018-04-221-12/+0
|
* Replace ERR_{NOCTCPALLOWED,WORDFILTERED} with ERR_CANNOTSENDTOCHAN.Gravatar Peter Powell2018-04-221-3/+0
| | | | | | There is no reason for these responses to have their own numerics when other modules do not. The only thing this does is make life harder for client developers.
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-1/+6
|\
| * Remove swhois messages set in the oper block on deoper.Gravatar Peter Powell2018-04-091-2/+7
| | | | | | | | Closes #1240.
* | Call OnUserMessageBlocked when a PRIVMSG or a NOTICE is blocked.Gravatar Peter Powell2018-04-161-1/+10
| | | | | | | | | | | | This is necessary to allow m_ircv3_echomessage to pretend that a message was echoed successfully. This is useful as it doesn't let spammers know that their message was blocked.
* | Add range checking to ConfigTag::getFloat.Gravatar Peter Powell2018-04-162-1/+2
| |
* | Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-161-0/+2
| |
* | Convert ConfigTag::getDuration to return an unsigned long.Gravatar Peter Powell2018-04-161-1/+1
| |
* | Convert ConfigTag::CheckRange to a function template.Gravatar Peter Powell2018-04-161-10/+0
| |
* | Remove the default value in ConfigTag::get{Duration,Float,Int}.Gravatar Peter Powell2018-04-161-3/+3
| |
* | Replace the remaining use of irc::string with irc::find.Gravatar Peter Powell2018-04-161-49/+7
| |
* | Change ServerInfo::gecos to descriptionGravatar genius30002018-04-112-2/+2
| |
* | Fix an invalid mode parameters numeric upon attempting to view a list modeGravatar B00mX0r2018-04-081-0/+9
| |
* | Include modules/whois.h directly from files that use it.Gravatar Peter Powell2018-04-081-1/+0
| |
* | Move OnStats from the core to a cross-module event.Gravatar Peter Powell2018-04-083-9/+19
| | | | | | | | | | Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later.
* | SQL: Add HasColumn() to check if a result contains a named column.Gravatar Daniel Vassdal2018-04-071-0/+9
| |
* | Move <security:announceinvites> to core_channel.Gravatar Peter Powell2018-03-311-8/+1
| |
* | Ignore expired or invalid client certificates (#1468).Gravatar Dylan Frank2018-03-291-2/+16
| | | | | | Fixes #1345.
* | Separate secret and private channels on whois for non-opers (#1447)Gravatar Dylan Frank2018-03-251-6/+0
| | | | | | | | | | | | | | | | | | Separate secret and private channels on WHOIS for all users. - Move the config parsing from the core to core_whois. - Replace <security:operspywhois> with an oper privilege. - Introduce <options:splitwhois> to split WHOIS channel lists. Closes #969.
* | Fix building on Windows (mostly).Gravatar Peter Powell2018-02-173-24/+2
| |
* | Add names for a bunch of numerics.Gravatar Peter Powell2018-02-021-2/+0
| |
* | Add ERR_INVALIDMODEPARAM for responding to invalid mode params.Gravatar Peter Powell2018-01-293-27/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Pass an irc::socket::sockaddrs to SocketEngine::SendTo().Gravatar Peter Powell2018-01-201-3/+2
| |
* | Pass an irc::socket::sockaddrs to SocketEngine::Connect().Gravatar Peter Powell2018-01-201-3/+2
| |
* | Fix some minor Doxygen errors.Gravatar Peter Powell2018-01-141-2/+2
| |
* | Rework message handling.Gravatar Peter Powell2018-01-063-59/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | Fix m_chanhistory sending the history notice directly to the user.Gravatar Peter Powell2018-01-031-0/+5
| | | | | | | | Closes #1452.
* | Make InspIRCd::Format return std::string instead of const char*.Gravatar Peter Powell2018-01-033-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Get rid of InspIRCd::QuickExit.Gravatar Peter Powell2017-12-231-5/+0
| | | | | | | | | | | | | | | | 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-221-80/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | Fixed misc. instances of ERR_NOSUCHNICK instead of channel numericsGravatar B00mX0r2017-12-222-3/+15
| | | | | | | | Per #1122
* | Rename <security:hidewhois> to <security:hideserver>.Gravatar Peter Powell2017-12-221-3/+2
| | | | | | | | | | The previous name was horrible and didn't describe what the setting actually does.
* | Add SHUN as a /filter actionGravatar B00mX0r2017-12-211-0/+70
| | | | | | | | This resolves #483
* | Extract RFC modes from the core to core_channel and core_user.Gravatar Peter Powell2017-12-102-122/+0
| |
* | Clean up numeric usage in WHOIS and WHOWAS.Gravatar Peter Powell2017-12-091-4/+0
| | | | | | | | | | | | | | | | | | | | - Add constants for all of the used numerics. - Switch RPL_CHANNELSMSG from 336 to 651 to avoid a conflict with RPL_INVITELIST from ircd-hybrid. - Switch RPL_WHOWASIP from 379 to 652 to avoid a conflict with RPL_WHOISMODES from UnrealIRCd.
* | Move OnSync{Channel,Network,User} to ServerEventListener.Gravatar Peter Powell2017-12-032-33/+24
| |
* | Rename the spanningtree module header to server.Gravatar Peter Powell2017-12-031-3/+3
| | | | | | | | | | In the future we will have server linking modules that are not the spanningtree module.
* | Convert the remaining things away from the caller/handler API.Gravatar Peter Powell2017-11-254-376/+10
| |
* | Convert GenRandom to std::function.Gravatar Peter Powell2017-11-251-6/+8
| |
* | Convert IsChannel to std::function.Gravatar Peter Powell2017-11-251-7/+9
| |
* | Convert IsIdent to std::function.Gravatar Peter Powell2017-11-251-7/+9
| |
* | Convert IsNick to std::function.Gravatar Peter Powell2017-11-252-7/+10
| |
* | Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-2117-79/+79
| | | | | | | | GCCs warnings for this are much better than Clangs.
* | Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-1710-21/+26
| |
* | Add events which are fired when a service is added or deleted.Gravatar Attila Molnar2017-11-161-0/+11
| |
* | Add a class which encapsulates the concept of token lists.Gravatar Peter Powell2017-11-132-3/+68
| |
* | Unite SSL service providers and SSL profile classesGravatar Attila Molnar2017-11-131-2/+2
| |
* | Merge tag 'v2.0.25' into master.Gravatar Peter Powell2017-11-121-1/+1
|\|
| * Fix the command table not being case insensitive.Gravatar Peter Powell2017-10-161-1/+5
| | | | | | | | | | | | This is not an issue normally but in some circumstances (e.g. when disabling commands) it can result in command lookups failing even when they exist.
* | Implement support for draft-brocklesby-irc-isupport-03 escapes.Gravatar Peter Powell2017-11-091-0/+6
| |