2839 Commits

Author SHA1 Message Date
Peter Powell
961109ae4f Remove trailing whitespace from various source files. 2019-01-24 22:18:22 +00:00
Peter Powell
dba2cddc46 Fix overriding <options:exemptchanops> with the exemptchanops mode.
Closes #1558.
2019-01-24 18:03:12 +00:00
Peter Powell
3b39a88fdf Fix a minor Doxygen warning. 2019-01-24 17:15:13 +00:00
Matt Schatz
d5b50d9ed1 Add the reason to xline removal notices. (#1545)
Show the reason in manual xline removal SNOTICEs, just like
expiry SNOTICEs do.

This modifies XLineManager::DelLine() to require another string
reference passed to it.

Requested by @Robby-.
2019-01-24 16:01:56 +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
Peter Powell
cbef0241a0 Implement support for the extended tag space for client tags. 2019-01-24 14:28:21 +00:00
Peter Powell
965c81baee Rename OnClientProtocolProcessTag to OnProcessTag. 2019-01-22 12:09:28 +00:00
linuxdaemon
f400d5f394 Redo OnSetEndPoint logic to fix duplicate clones (#1549). 2019-01-14 11:48:45 +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
f4041a13c3 Release v3.0.0 release candidate 1. 2019-01-07 22:41:54 +00:00
linuxdaemon
b6ca49a232 Add the ability to disable console colors in stdout logging (#1539). 2019-01-03 13:17:23 +00:00
Peter Powell
aafc03bdfc Fix message tags not being broadcast across the network. 2019-01-02 20:28:46 +00:00
linuxdaemon
7530285740 Only parse valid durations, don't treat invalid multipliers as seconds (#1538) 2018-12-21 19:37:22 +01:00
Peter Powell
36da0833c5 Add the <maxlist> tag and switch ListModeBase to always use it.
The old method of doing this was:

1. Extremely inconsistently used. Some list modes used <banlist>
   and some used their own config tag.
2. Not documented in the slightest. There was a small reference to
   <maxbans> for the ban mode but nothing else.
3. In some cases conflicting with other config tags. The chanfilter
   module defined a <chanfilter> tag for general config whilst also
   using it for the max list settings.

The new <maxlist> tag avoids these issues entirely.
2018-12-19 09:02:09 +00:00
Peter Powell
8ec9a73a91 Fix ParamModeBase::OnUnset() not being virtual.
Closes #1536.
2018-12-16 01:41:47 +00:00
Peter Powell
ee7db9bbfb Store durations as unsigned long not long in XLine and m_filter. 2018-12-13 14:20:43 +00:00
Peter Powell
0f7cfd46ef Fix conversion issues by replacing ConvToInt with ConvToNum<T>.
The former was a thin wrapper around atol and brought with it all
of the weird parsing logic of atol which is almost never what is
actually wanted. It also almost never returned the numeric type
which is actually wanted which can cause weird issues when casting.
2018-12-12 21:43:24 +00:00
Peter Powell
654355c2d1 Reject setting modes which are null or not registered. 2018-12-12 14:43:55 +00:00
Peter Powell
cb7e83aa4e Move some config parser-internal types out of the public header. 2018-12-09 16:13:27 +00:00
Peter Powell
db5610a564 Use consistent numerics when a mode already exists or doesn't exist. 2018-12-09 06:57:10 +00:00
Peter Powell
9dab477dad Allow modules to check if a user is on a callerid accept list. 2018-12-09 04:28:20 +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
9574997540 Only check if a SSL cert is usable if we're getting the fp. 2018-11-26 14:33:44 +00:00
Peter Powell
cc5aff3e5a Move IsValidDuration into the core. 2018-11-24 23:27:16 +00:00
Peter Powell
6adca3e099 Fix the OnSendWhoLine event being completely broken with WHOX. 2018-11-15 19:24:47 +00:00
Peter Powell
79892a727e Implement support for WEBIRC attributes. 2018-11-04 15:29:06 +00:00
Peter Powell
ae0ae8ea61 Allow HAProxy to specify that a client is connecting with SSL. 2018-10-25 13:50:43 +01:00
Peter Powell
d62c870ffb Store the type of a StreamSocket within itself.
Similar to with IOHooks this allows you to convert StreamSocket to
a UserIOHandler quickly.
2018-10-25 13:50:43 +01:00
Peter Powell
0e6b18ff91 Fix warnings from Doxygen. 2018-10-21 19:18:08 +01:00
Peter Powell
98a80a730e Fix unregistered user modes thinking they are enabled. 2018-10-18 10:59:52 +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
75e144b55e Fix the chanhistory module being inconsistent across servers.
Closes #331.
2018-10-01 12:34:47 +01:00
Peter Powell
cae87fa047 Switch all core modules still using COMMAND_INIT to MODULE_INIT. 2018-09-23 14:19:06 +01:00
Peter Powell
876b1ae4e2 Don't sync xlines defined in the config and expire them on rehash.
Closes #1427.
2018-09-23 13:35:15 +01:00
Peter Powell
7e9ec8e490 Amend OnPostCommand to specify whether the command is loopcalled.
This restores previous behaviour which was lost when the original
line parameter was removed.
2018-09-11 09:03:47 +01:00
Peter Powell
4567a325b8 Implement proper CTCP parsing in MessageDetails. 2018-08-26 11:33:19 +01:00
Peter Powell
b5bc17fba3 Send the 001-004 numerics and MOTD/LUSERS from core_info.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-22 21:25:55 +01:00
Peter Powell
c5c5a867d2 Fix aliases that resolve to messages echoing with echo-message.
Fixes #1459.
2018-08-15 08:58:06 +01:00
Peter Powell
a69f543be3 Fix a bunch more conflicting/unnamed numerics. 2018-08-14 19:31:26 +01:00
Peter Powell
f7a115884f Rename OnChangeLocalUserHost to OnPreChangeHost for consistency. 2018-08-14 00:22:59 +01:00
Peter Powell
10b17a0e9f Remove the OnInfo event.
This is not used by anything and On{Post,Pre}Command hooks can
be used if people really want to add stuff to INFO.
2018-08-14 00:18:13 +01:00
Peter Powell
584d456903 Add support for the IRCv3 batch specification.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13 22:01:42 +01:00
Peter Powell
2249524355 Add support for the IRCv3 server-time specification.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13 22:01: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
e2a820cce2 Add an accessor for the last mode change list to ModeParser.
GetLastParse will be going away soon.
2018-08-13 16:52:37 +01:00