13809 Commits

Author SHA1 Message Date
Robby
ac0d5abaac Update most URLs to use HTTPS and fix some dead links. 2019-03-14 11:02:24 +00:00
Peter Powell
62ba7c3917 Generate the ssl_cert metadata before bursting a connecting user. 2019-03-14 10:52:13 +00:00
Matt Schatz
b518f45d72 Check perms for removal of oper-only channel modes.
Oper-only channel modes are currently unsettable by any channel
op, oper or not. Correct this by checking both directions of an
oper-only channel mode and continue only checking the setting of
an oper-only user mode. As anyone should be able to unset their
own user modes and UnOper() removes all oper-only user modes
automatically.
2019-03-14 10:06:28 +00:00
Matt Schatz
5f2ecf0013 Add oper privs to allow overriding noctcp. 2019-03-14 00:55:18 +00:00
Matt Schatz
d57cad7896 Fix incorrect ModResult for noctcp user target. 2019-03-14 00:55:18 +00:00
linuxdaemon
f808b2db75 Add SSL flag to WHO response 2019-03-12 18:36:23 +00:00
linuxdaemon
1003c593bf Rename GetFlagIndex -> GetFieldIndex 2019-03-12 17:14:53 +00:00
linuxdaemon
c02b30b96e Move field lookup logic out of WhoData constructor 2019-03-12 17:14:53 +00:00
linuxdaemon
dfb1e0da78 Add Who::Request::GetFlagIndex to get field index
Replaces the dirty logic in m_hideoper and m_namesx
2019-03-12 17:14:53 +00:00
Matt Schatz
f87b72b76f Fix BanCache entries existing after X-line expiry.
When DefaultApply() adds a hit to the BanCache it uses the X-line
duration to set a duration on the entry. This can result in an
entry lasting longer than the X-line itself. Fix this by setting
the entry duration to the time left on the X-line.
2019-03-10 10:27:12 +00:00
Peter Powell
42c7f479b2 m_httpd: GCC is __GNUC__ not _GNUC. 2019-03-09 09:54:48 +00:00
Peter Powell
f97c88f6f6 m_httpd: use http_response_str() instead of Response().
Lets not reinvent the wheel pointlessly.
2019-03-08 10:50:53 +00:00
Peter Powell
83d2331a03 Fix an "unknown pragma" warning on Windows. 2019-03-08 10:50:08 +00:00
Robby
4be144252b Add missing '>' to an example connect tag. 2019-03-07 10:48:54 +00:00
Peter Powell
3a68e05d9a Reject client-to-client tags with no name. 2019-03-02 11:32:02 +00:00
Matt Schatz
9b25df3109 Improve the handling of config X-lines and filters. (#1583) 2019-02-22 13:44:57 +00:00
Peter Powell
fa83fac94a Split reading module initialisation and configuration reading.
This allows modules to register services that other modules may
require to be available when reading the configuration.
2019-02-20 17:34:11 +00:00
linuxdaemon
20ef7d19f7 Fix not showing all modes on a channel
Whenever a mode has a parameter, no modes past that mode will be shown
in RPL_CHANNELMODEIS.

References to items in a vector break when the vector's size is changed.
2019-02-20 08:38:35 +00:00
Peter Powell
c495b5d9cf Implement support for IRCv3 client-to-client tags. 2019-02-19 22:53:15 +00:00
Peter Powell
74136695f8 Fix erasing event subscribers erasing all with the same priority. 2019-02-19 20:59:04 +00:00
Peter Powell
f06502606e Allow customising ElementComp in flat_{map,multimap,multiset,set}. 2019-02-19 20:58:53 +00:00
Robby
7d84771f49 Minor text fixes for m_filter. 2019-02-19 20:51:54 +00:00
Matt Schatz
d2ed9f842f Improve the messages in m_filter.
* Deduplicate "FILTER" in some SNOTICES.
* Add the filter reason to removals to match
with X-line removals now.
* Use the new DurationString() function for a
standardized duration display when adding.
* Add X-line mask, duration, and expiry date to
the action messages.
2019-02-19 11:31:06 +00:00
Peter Powell
318d50bc86 Improve support for wildcards in <link:name>.
Closes #1569.
2019-02-18 16:17:23 +00:00
Peter Powell
8bc996bcc1 Fix MatchCIDR matching UNIX socket hostnames. 2019-02-18 15:48:26 +00:00
Matt Schatz
755a32c751 Start using DurationString() in X-line additions and
a few other modules where it fits better than just showing seconds.
2019-02-18 09:17:38 +00:00
Matt Schatz
ff7bebe90c X-line expiries: use the new DurationString() function. 2019-02-18 09:17:38 +00:00
Matt Schatz
e02c22ff16 Add a function for displaying human-readable durations.
Add InspIRCd::DurationString() to take a time_t and return a string
with the duration in a human-readable format (ex: 1y20w2d3h5m9s).
2019-02-18 09:17:38 +00:00
Robby
21e7efdadf Various text improvements: consistency, syntax, help and doc updates/fixes. 2019-02-18 09:15:56 +00:00
Peter Powell
35bbf9bb01 Fix an off-by-one error in User::GetModeLetters(). 2019-02-17 10:23:19 +00:00
Peter Powell
b6e548d8df ircv3_chghost: also send the CHGHOST message to the modified user. 2019-02-16 15:24:55 +00:00
Peter Powell
6daf442c77 Use the local hostname as the server name if one is not specified. 2019-02-16 14:25:29 +00:00
Peter Powell
9b031d4d98 Remove obsolete ifdef in m_ssl_gnutls.
GNUTLS_DIG_SHA256 was added in version 1.7.4 and we require 2.0.0+
2019-02-16 12:06:44 +00:00
Peter Powell
27e2617808 Move the close and jumpserver modules to inspircd-extras.
- The close module is borderline useless.
- The jumpserver numeric is supported by barely any clients and
  has various security problems.
2019-02-15 12:35:51 +00:00
Peter Powell
a7fc2fe0dc Replace GetServerPort() with server_sa.port(). 2019-02-15 11:35:25 +00:00
Peter Powell
168ee80490 Rename User::nping to nextping for consistency with lastping. 2019-02-15 11:35:25 +00:00
Peter Powell
f5b2265c2e Refactor UserManager::DoBackgroundUserStuff(). 2019-02-15 11:35:24 +00:00
Peter Powell
84597efb27 Silence a warning from the helper script on OpenBSD. 2019-02-14 16:16:01 +00:00
Peter Powell
ebb3258ff4 WriteNeighborsWithCap: add the ability to send to the origin user. 2019-02-14 14:40:12 +00:00
Peter Powell
72841a6376 Re-tabularise the helpop cuser/coper command lists. 2019-02-09 13:03:00 +00:00
Peter Powell
18fc0ef29f Unify the helpop and helpop-full config files. 2019-02-09 12:50:07 +00:00
Peter Powell
c8cc16040d Implement support for SQUERY from RFC 2812.
This is treated internally as a PRIVMSG with a few exceptions:

1. The command MUST have exactly one target.
2. The target MUST be a user.
3. The target MUST be on a u-lined server (e.g. NickServ).
2019-02-09 12:50:06 +00:00
Peter Powell
1f4651e24d Move CommandMessage::Handle into the class definition. 2019-02-09 10:08:50 +00:00
Peter Powell
2680c7907a Move message handling code to Handle{Channel,Server,User}Target.
This makes the logic for this module considerably easier to read.
2019-02-09 10:08:35 +00:00
Peter Powell
6b23b222bc Deduplicate firing module events in core_message. 2019-02-09 10:08:33 +00:00
Peter Powell
4c3f1281a1 core_message: remove unnecessary inheritance logic. 2019-02-08 12:26:44 +00:00
Peter Powell
cd57c162f6 Rename core_privmsg to core_message. 2019-02-08 12:10:28 +00:00
Peter Powell
f37590259e Fix erroneously limiting to the size of sa instead of sun_path. 2019-02-07 17:35:44 +00:00
Peter Powell
499121036c Add irc::sockets::untosa() for creating AF_UNIX sockaddrs.
Also fix an overly long albeit harmless memcpy when creating UNIX
socket listeners. Thanks to @psychon for reporting this.
2019-02-07 15:38:44 +00:00
Peter Powell
dd6f545ab6 Fix an unintentionally inverted condition in core_oper. 2019-02-07 11:57:33 +00:00