13701 Commits

Author SHA1 Message Date
Peter Powell
965c81baee Rename OnClientProtocolProcessTag to OnProcessTag. 2019-01-22 12:09:28 +00:00
Peter Powell
0a1f9bc594 Call the OnUserInit hook from earlier in UserManager::AddUser.
This fixes messages being lost when sending them to a user who has
only just connected to the server.
2019-01-20 09:52:38 +00:00
Peter Powell
0a9c72335a Move ident lookups to the OnSetUserIP hook. 2019-01-20 09:51:12 +00:00
Peter Powell
25b3686f43 Fix sending the entire VERSION output as a single parameter.
Closes #1560.
2019-01-19 13:10:56 +00:00
Robby
0527f858ce m_check: Fix showing oper permissions (privileges). (#1556) 2019-01-17 11:20:26 +00:00
Peter Powell
11cc922584 Fix the hostchange set action swapping the host/value fields. 2019-01-14 21:33:51 +00:00
linuxdaemon
f400d5f394 Redo OnSetEndPoint logic to fix duplicate clones (#1549). 2019-01-14 11:48:45 +00:00
linuxdaemon
0a7d2456d9 Allow wildcards in <connect:dnsbl>
This makes it consistent with other <connect> class parameters like
`webirc`
2019-01-11 16:17:51 +00:00
Robby
e784524e11 The <ident:bind> setting doesn't exist anymore, remove the reference to it from the config.
This setting was removed in commit 0a1fe6cf293bef91b419f57374b96a6d2aec636e.
2019-01-11 15:01:56 +00:00
Peter Powell
98e90d6d68 Fix reading the server path for UNIX sockets. 2019-01-10 19:14:17 +00:00
Peter Powell
100c6c419c Fix copying too much data into the remote endpoint field.
This is a buffer overrun but its harmless as the things it will
overwrite are no longer necessary.
2019-01-10 19:09:02 +00:00
Peter Powell
21ae8e3144 m_ircv3_echomessage: only echo the tags which were actually used. 2019-01-10 11:45:59 +00:00
Peter Powell
00a11bd0b5 Improve the error messages given when creating a mode. 2019-01-10 10:42:31 +00:00
Peter Powell
be91435ccb core_privmsg: respect the exemption list when sending $* messages. 2019-01-09 19:58:43 +00:00
Peter Powell
aea67c2520 Fix m_alias not initialising 'active' before use. 2019-01-09 15:57:04 +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. v3.0.0rc1 2019-01-07 22:41:54 +00:00
Peter Powell
2e3c630909 core_stub: add stubs for the SUMMON and USERS commands. 2019-01-07 01:37:55 +00:00
Peter Powell
4317e2c4d9 Improve consistency of the restrictchans module example config. 2019-01-05 16:55:51 +00:00
Peter Powell
29696ca3eb Fix http_parser last updated date. 2019-01-05 16:54:34 +00:00
Peter Powell
f155271638 Move RPL_UNINVITED to 653 to avoid a collision with Bahamut/ircu. 2019-01-05 16:54:34 +00:00
Peter Powell
b30988ee60 Fix the websocket origin config example. 2019-01-05 16:54:34 +00:00
linuxdaemon
9aadc251e9 Merge m_restrictchans and m_regonlycreate due to converging functionality (#1541). 2019-01-04 20:31:08 +00:00
Peter Powell
cefa51ba8e Update the names in the /INFO credits.
- Add linuxdaemon to Active Contributors.
- Move Sheogorath to Active Contributors.
2019-01-04 20:06:01 +00:00
Peter Powell
f5de55813b Improve the spanningtree "unknown command" error message. 2019-01-03 22:36:42 +00:00
Peter Powell
d33c174e58 Fix building modules which depend on vendor libs on Windows. 2019-01-03 13:19:07 +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
e433401fb8 Fix a crash when trying to use ROUTE_TYPE_MESSAGE with no message. 2019-01-02 20:28:48 +00:00
Peter Powell
aafc03bdfc Fix message tags not being broadcast across the network. 2019-01-02 20:28:46 +00:00
Peter Powell
93390f6ccb Strip message tags when talking with 1202 protocol servers. 2019-01-02 16:56:25 +00:00
Peter Powell
8fd5f78f83 Remove spanningtree check for lines sent without a source.
We don't send any of these anymore.
2019-01-02 16:56:08 +00:00
Peter Powell
d45060c2ba Update the vendored http_parser library to v1.3. 2019-01-01 14:11:06 +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
60ae49b62a Fix thinking that 1202 protocol servers have not finished bursting.
A server introduction is only a burst if all of the parent servers
of it are not bursting.

Fixes #1527.
2018-12-20 15:08:17 +01:00
Peter Powell
f904042e9e Fix docs referring to channel mode e using the wrong name. 2018-12-19 10:06:46 +00: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
linuxdaemon
4fbd6681fe Make more modules rehash atomically (#1535)
Have each module validate the values it loads before setting them, so
any errors don't result in partial application of the configs
2018-12-19 01:06:56 +00:00
Peter Powell
bf0bf05ac0 Fix not propagating rehashes properly across the network.
The REHASH command is not routed like a normal command. When a
rehash that needs to be forwarded is received the local server
forwards it indirectly by calling the local REHASH handler which
then calls the OnPreRehash hook. This results in the OnPreRehash
hook being called whilst loopCall is true.

The bug which this check was added to fix seems to no longer be
present so no alternate fix for that seems necessary.

Closes #1537.
2018-12-17 19:26:59 +00:00
Peter Powell
28eeee38bd Alphabetically sort the modes in MAXLIST tokens.
This isn't strictly necessary but we do it for other modes in 005
so lets do it for MAXLIST too.
2018-12-17 14:02:20 +00:00
Peter Powell
8ec9a73a91 Fix ParamModeBase::OnUnset() not being virtual.
Closes #1536.
2018-12-16 01:41:47 +00:00
Peter Powell
0b36f9bdc8 Fix a typo in core_user. 2018-12-15 13:39:25 +00:00
Peter Powell
3d0d64933d Update the cloaks of connected users when their IP address changes. 2018-12-13 16:58:39 +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
4e0cb28c19 Fix not rejecting invalid durations in DCCALLOW. 2018-12-12 21:39:46 +00:00
Peter Powell
654355c2d1 Reject setting modes which are null or not registered. 2018-12-12 14:43:55 +00:00
Peter Powell
51891f10f2 Fix a crash when the core_oper module is not loaded. 2018-12-12 14:43:55 +00:00
Peter Powell
372c5c9496 Fix overly escaping MOTDs if they are in more than one connect class. 2018-12-10 17:27:19 +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
f99f0af6d1 Fix the example help files using the wrong name for <helpmsg:nohelp>.
Thanks to @genius3000 for pointing this out.
2018-12-09 08:10:39 +00:00