329 Commits

Author SHA1 Message Date
Sadie Powell
4176261edf Convert OperInfo from reference<> to std::shared_ptr<>. 2020-10-31 16:55:18 +00:00
Sadie Powell
5a88a78f99 Merge branch 'insp3' into master. 2020-10-27 10:50:28 +00:00
Sadie Powell
5c06a0f335 Check that the values specified in <limits> are reasonable. 2020-09-30 17:21:52 +01:00
Sadie Powell
437c2045ad Add ConfigParser::getEnum for parsing enum values. 2020-05-13 14:33:47 +01:00
Sadie Powell
b755d2a778 Merge branch 'insp3' into master. 2020-05-05 22:03:14 +01:00
InspIRCd Robot
44489ddf7e Update copyright headers. 2020-04-24 10:23:47 +01:00
InspIRCd Robot
4f9abe96a4 Fixes by misspell-fixer 2020-04-21 00:52:12 -06:00
Sadie Powell
bafb721640 Merge branch 'insp3' into master. 2020-04-14 19:57:10 +01:00
Sadie Powell
d99ee13f29 Mark all config parsing methods as const. 2020-04-12 06:04:42 +01:00
Sadie Powell
6fcbfc0723 Add support for limiting what opers can subscribe to snomasks. 2020-04-11 15:44:51 +01:00
Sadie Powell
98e4ddfb21 Use C++11 inline initialisation for class members. 2020-02-06 11:25:42 +00:00
Sadie Powell
0966ad5a0a Make WritePID read directly from the config. 2020-02-06 01:53:16 +00:00
Sadie Powell
1de6f5b4a9 Merge branch 'insp3' into master. 2020-01-17 12:36:09 +00:00
InspIRCd Robot
aa692dc103 Update copyright headers. 2020-01-11 22:14:43 +00:00
Sadie Powell
f856d5ab8a Merge branch 'insp3' into master. 2020-01-01 12:33:10 +01:00
Peter Powell
37b46ade4b Extract command line option parsing to a function. 2019-12-09 01:15:31 +00:00
Sadie Powell
8848169e8b Merge branch 'insp3' into master. 2019-09-23 00:37:33 +01:00
Peter Powell
5cf6f65044 Document ConfigStatus and add a way to detect the initial load. 2019-09-02 15:17:30 +01:00
Sadie Powell
03d3563ef9 Replace socketengine_{pthread,win32} with C++11 threads. 2019-05-15 21:06:09 +01:00
Sadie Powell
b4685e06d4 Remove all 2.0 config compatibility code. 2019-01-25 03:27:13 +00:00
Sadie Powell
c78ecdf579 Replace the override macro with the override keyword. 2019-01-25 02:52:11 +00:00
Sadie Powell
fb17bba197 Replace the TR1NS macro with the std namespace. 2019-01-25 02:49:03 +00:00
Peter Powell
4047a143fc Move the <disabled> tag out of the core to a new module. 2019-01-24 15:10:02 +00:00
Matt Schatz
f2e3fd5952 Improve X-line text consistency.
- Change any "-Line", ":Line", or "*line" to "-line" throughout
the X-line code, comments, and documentation.
- Add periods to the end of some notices.
- Correct a typo in the Q-line code comments.
- Update the filter module documentation (shun addition).

Co-authored-by: Robby <robby@chatbelgie.be>
2019-01-09 10:07:09 +00:00
Peter Powell
a4c1b1f4fc Add an option for changing the allowed server clock drift. 2018-12-04 19:04:09 +00:00
Peter Powell
0e6b18ff91 Fix warnings from Doxygen. 2018-10-21 19:18:08 +01:00
Peter Powell
08177bccc2 Move <security:userstats> into core_stats. 2018-10-01 17:26:22 +01:00
Peter Powell
d7dd8d193c Move <security:hidesplits> to the spanningtree module. 2018-10-01 17:26:22 +01:00
Peter Powell
ff5fdd21c1 Move <security:genericoper> into core_whois. 2018-10-01 17:26:22 +01:00
Peter Powell
9ddb9cc658 Move <security:hideulinekills> into core_oper. 2018-10-01 17:26:22 +01:00
Peter Powell
7b6f7dcde5 Move <security:hidekills> into core_oper. 2018-10-01 17:26:22 +01:00
Peter Powell
680ecdae0c Document ServerConfig::Conf{Tags,Value} better. 2018-10-01 17:26:21 +01:00
Peter Powell
58a0a7e014 Implement IRCv3 message tag support.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13 21:51:11 +01:00
Peter Powell
8cb20e3545 Replace most usages of "GECOS" with "real" or "real name". 2018-07-30 18:30:11 +01:00
Peter Powell
e22383c6f4 Add a ConfigTag::getString overload that calls a validation method. 2018-07-10 21:14:56 +01:00
Peter Powell
2a022cb9b7 Add a silent option to <options:restrictbannedusers>.
This is useful when dealing with spambots that switch method when
they receive ERR_CANNOTSENDTOCHAN.
2018-07-10 21:01:35 +01:00
Chris Novakovic
9cd7a2e546 Add --nopid command line option (#1497).
Add a --nopid command line option, which causes a PID file not to be
written to the file system regardless of the presence of the <pid> tag
in the configuration file or the value of its "file" variable if it is
present.
2018-06-04 12:40:32 +01:00
Peter Powell
9b8dc77585 Add range checking to ConfigTag::getFloat. 2018-04-16 15:29:58 +01:00
Peter Powell
780dda83ba Add ConfigTag::getUInt for reading unsigned config values. 2018-04-16 15:29:55 +01:00
Peter Powell
2d36fcb16e Convert ConfigTag::getDuration to return an unsigned long. 2018-04-16 15:24:49 +01:00
Peter Powell
7c2adcb46a Convert ConfigTag::CheckRange to a function template. 2018-04-16 15:07:06 +01:00
Peter Powell
7ef2f87e39 Remove the default value in ConfigTag::get{Duration,Float,Int}. 2018-04-16 15:07:06 +01:00
Peter Powell
802eed1734 Move <security:announceinvites> to core_channel. 2018-03-31 13:16:27 +01:00
Dylan Frank
c7de80233a Separate secret and private channels on whois for non-opers (#1447)
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.
2018-03-25 17:02:00 +01:00
Peter Powell
e467fd0a6f Rename <security:hidewhois> to <security:hideserver>.
The previous name was horrible and didn't describe what the setting
actually does.
2017-12-22 01:11:14 +00:00
Peter Powell
91e0af0fc4 Add the override keyword in places that it is missing.
GCCs warnings for this are much better than Clangs.
2017-11-21 15:51:45 +00:00
Peter Powell
36040be295 Fix a ton of -Wsign-conversion warnings. 2017-11-17 15:33:01 +00:00
Peter Powell
5287af979e Add a class which encapsulates the concept of token lists. 2017-11-13 19:44:04 +00:00
Peter Powell
020c1d6ea6 Add a constructor to OperInfo and use it to set the type name. 2017-10-18 18:38:30 +01:00
Peter Powell
aac644de3d Clean up the command disabling logic.
- Read the disabled command list in ApplyDisabledCommands() instead
  of storing it in a global which is only accessed on rehash.
- Write debug messages to the log when disabling commands.
- Use irc::spacesepstream instead of std::stringstream.
2017-10-17 20:29:15 +01:00