13825 Commits

Author SHA1 Message Date
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
Peter Powell
785f3a2866 Document OnUserWrite. 2019-02-07 11:56:53 +00:00
Peter Powell
88d5659922 Tell people to run make install instead of just make. 2019-02-06 23:15:33 +00:00
linuxdaemon
577cc512e4 Don't allow invalid characters in UNIX listener paths. 2019-02-06 10:45:58 +00:00
linuxdaemon
d4a1ea7045 Expand searching in m_httpd_stats, add global handling of GET parameters (#1566) 2019-02-06 10:33:06 +00:00
Peter Powell
a638de7715 Release v3.0.0 release candidate 2. v3.0.0rc2 2019-02-06 10:02:31 +00:00
Peter Powell
01451ab26e Quit users during cleanup instead of when /DIE is executed. 2019-02-05 17:26:19 +00:00
Peter Powell
bf046f87c8 Delete the old broken test suite.
This doesn't work properly and is disabled in both debug & release
builds. It will be resurrected with a proper unit testing framework
in the future.
2019-02-05 17:11:54 +00:00
Peter Powell
6a95b42e11 Move <oper:class> and <oper:vhost> to core_oper. 2019-02-05 02:22:26 +00:00
Peter Powell
104ae68718 ModuleManager: use std::flush instead of fflush(stdout). 2019-02-05 00:06:03 +00:00
Peter Powell
05485be9f0 Module: Initialise 'ModuleDLLManager' and 'dying' correctly. 2019-02-05 00:00:56 +00:00
Peter Powell
8d87fa3837 DLLManager: add a function for retrieving a symbol. 2019-02-04 23:37:54 +00:00
Peter Powell
1ad063eff9 m_check: improve the output when showing list modes.
Closes #1568.
2019-02-04 18:46:02 +00:00
Peter Powell
0a229e70a5 m_check: rename the timestamp key to createdat. 2019-02-04 15:28:01 +00:00
Peter Powell
a7b52308db m_check: improve the output of the member key. 2019-02-04 15:26:53 +00:00
Peter Powell
4690bbdee8 m_check: split modeperms into chanmodeperms and usermodeperms. 2019-02-04 14:22:49 +00:00
Peter Powell
7141ccc5bb m_check: remove unnecessary usage of CheckContext::List. 2019-02-04 14:18:32 +00:00
Peter Powell
452a00e69f Improve the name of the list mode extensible. 2019-02-04 14:04:05 +00:00
Peter Powell
f434c03f51 m_check: replace timestring() with a Write() overlod. 2019-02-04 13:17:31 +00:00
Peter Powell
26095b12f6 ident: fix erroneously prefixing an ident multiple times. 2019-02-04 10:20:33 +00:00
Peter Powell
625e5435f5 ident: rename ext to socket. 2019-02-04 09:47:26 +00:00
Peter Powell
09da1499d7 ident: rename nolookupprefix to prefixunqueried. 2019-02-04 09:47:26 +00:00
Peter Powell
965c55881b ident: store the timeout as an unsigned value and limit to 60s. 2019-02-04 09:47:26 +00:00
Peter Powell
d66757a438 ident: reduce the amount of messages sent when a lookup fails. 2019-02-04 09:47:24 +00:00
Peter Powell
f35490427c ident: Change idents with the ChangeIdent method. 2019-02-04 09:16:40 +00:00
Peter Powell
3b9ef1ae8d ident: Fix making idents longer than maxident when a lookup fails. 2019-02-04 09:16:40 +00:00
linuxdaemon
2ee2e8b60d Allow multiple fingerprints in an oper block (#1564) 2019-02-01 09:47:20 +00:00
B00mX0r
e844a2cef9 Fix a minor typo in ssl.h 2019-02-01 09:43:32 +00:00
Peter Powell
a580cacb19 Improve the accessibility and robustness of prompt_bool.
- Use "yes" and "no" instead of "y" and "n".
- Validate the true and false responses properly.
- Keep prompting the user for a response until they give one which
  is valid.
2019-01-29 21:18:18 +00:00
Peter Powell
f1c3833663 Don't clear the screen when running in interactive mode.
This hides potentially useful information.
2019-01-29 21:18:18 +00:00
Peter Powell
59ddf1a456 Improve setting the gid/uid which will own files.
- Consistently set the gid/uid for all directories and files.
- Replace the obnoxious warning about root on `make install` with
  a friendlier warning whilst running configure.
- Always install the inspircd executable and modules.
2019-01-29 21:18:18 +00:00
Peter Powell
202ba7d76d Fix -Wnewline-eof warning. 2019-01-29 04:46:18 +00:00
Peter Powell
4d768d823d Fix reading the setname config tag. 2019-01-28 23:23:41 +00:00
Peter Powell
26a80ed2c7 Read the muteban config in ReadConfig(). 2019-01-28 22:19:33 +00:00
Peter Powell
4a99e25569 Fix RPL_ADMINME not having the correct parameters. 2019-01-28 22:18:00 +00:00