Peter Powell
20fa9e1038
Use FindUUID in place of FindNick in places that only get a UUID.
2019-12-16 14:22:26 +00:00
Peter Powell
ce7979bd7d
Extract port binding code to a function and improve output.
2019-12-12 14:37:38 +00:00
Matt Schatz
a1c127aef6
Update the mailmap for myself.
2019-12-09 10:04:39 +00:00
Peter Powell
ad50225dc3
Make BindPorts return size_t instead of int.
2019-12-09 01:34:02 +00:00
Peter Powell
350a01d60c
Make ForkIntoBackground handle exiting by itself.
2019-12-09 01:33:52 +00:00
Peter Powell
37b46ade4b
Extract command line option parsing to a function.
2019-12-09 01:15:31 +00:00
Peter Powell
15b87e3b2b
Fix indentation of CheckRoot() and error in non-interactive mode.
2019-12-09 00:10:59 +00:00
Peter Powell
cca482b006
Improve behaviour when running as root.
...
- Only give the annoying message about root if --runasroot is not
specified.
- If --runasroot is specified then assume the user knows what they
are doing.
- Move CheckRoot to a static function in inspircd.cpp.
2019-12-08 23:08:57 +00:00
Peter Powell
bd20bdda21
Show the header before checking if the config file exists.
2019-12-08 22:36:13 +00:00
Peter Powell
078f72c1ab
Initialise Winsock from inside the socket engine.
2019-12-08 22:27:45 +00:00
Peter Powell
98561bddd0
Extract config file finding code to a function.
2019-12-08 22:26:33 +00:00
Peter Powell
23a122cb63
Extract performance stat code to a function.
2019-12-08 22:08:41 +00:00
Peter Powell
6b80d34c9f
Move XLine garbage collection to core_xline.
2019-12-08 21:57:51 +00:00
Peter Powell
01328257ff
Increase the core dump size earlier in the process lifetime.
...
According to `man 2 getrlimit` resource limits are inherited by
the child when a process forks.
2019-12-08 21:41:56 +00:00
Peter Powell
0dd7eaf63d
Call RecoverFromFork from ForkIntoBackground.
2019-12-08 21:36:19 +00:00
Peter Powell
9ad873886e
Convert InspIRCd::SetSignals to a static function.
2019-12-08 21:30:55 +00:00
Peter Powell
3faa9e3299
Move forking code into a function and remove DaemonSeed.
2019-12-08 21:19:47 +00:00
Peter Powell
191ad98fb5
Extract the core dump size increasing code to a function.
2019-12-08 20:53:19 +00:00
Peter Powell
399abe05ea
Make the UpdateTime function easier to read.
2019-12-08 20:39:46 +00:00
Peter Powell
71130d15b3
Extract root dropping code to a function.
2019-12-08 20:39:28 +00:00
Peter Powell
a47e2df0ce
Replace our Windows getopt_long wrapper with ya_getopt.
...
Closes #546 .
2019-12-08 19:59:34 +00:00
Peter Powell
914d8140d9
Use meaningful variable names in consolecolors.
2019-12-08 19:12:56 +00:00
Peter Powell
c9a06147e6
Extract rng initialisation code to a function.
2019-12-08 19:05:01 +00:00
Peter Powell
eaa47be713
Move various static functions into an anonymous namespace.
2019-12-08 18:51:52 +00:00
Peter Powell
b8cb1e5f01
Clean up the initialisation of the InspIRCd class.
2019-12-08 17:26:58 +00:00
Peter Powell
bd04209104
Get rid of the platform tests in the Travis build script.
...
We only build on Xenial nowadays so this check is unnecessary.
2019-12-06 19:33:55 +00:00
iwalkalone
aea5500b46
Fixing MatchCIDR call when checking proxy range
2019-12-06 19:30:11 +00:00
Peter Powell
7f36a33713
Bump the InspIRCd ABI version.
2019-12-03 12:25:12 +00:00
Peter Powell
54b3cf898e
Add a note to the issue template about the security policy.
2019-12-03 12:09:29 +00:00
Peter Powell
eaea34e987
Send * for empty targets in the no such nick/channel message.
2019-12-03 12:09:15 +00:00
Peter Powell
cad88bcffb
Use network-online instead of network in the systemd service.
...
As recommended at https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ .
Closes #1729 .
2019-11-30 16:17:32 +00:00
Peter Powell
694c121908
Change the default for <waitpong:sendsnotice> to false.
...
This message exists for an incredibly rare issue and just confuses
the vast majority of people.
2019-11-29 13:48:13 +00:00
Peter Powell
df2a3d6fc4
Minor cleanup of the conn_umodes module.
2019-11-29 13:43:49 +00:00
Peter Powell
965460400b
WebSocket: move the OriginList typedef inside WebSocketConfig.
2019-11-29 11:11:11 +00:00
Peter Powell
afb5972ab5
WebSocket: replace the behindproxy switch with a proxy IP list.
2019-11-29 11:09:36 +00:00
Peter Powell
bb1f892f68
Implement support for websocket connections via a proxy like nginx.
2019-11-28 17:59:35 +00:00
Peter Powell
6f2d0b505f
Move WebSocket config to its own class.
2019-11-28 17:06:11 +00:00
Peter Powell
bef13bcae3
Add some overloads of IRCv3::Replies::Reply#Send.
2019-11-25 14:10:42 +00:00
Peter Powell
478a092258
Rename ldapoper class to LDAPOper.
...
This might be causing issues for some people?
2019-11-22 14:13:45 +00:00
Matt Schatz
7ae4ca1a23
Split the channel mode and extban replies.
...
Tell the user when they are extbanned rather than incorrectly say
that the channel mode is set.
Refactored the logic in m_nonotice to match that of the others.
2019-11-18 11:18:00 +00:00
Matt Schatz
36d7ee44a8
Change Config->CaseMapping back when unloading.
...
Now that casemapping is configurable in the core and we set that
Config variable rather than just modifying the ISupport output each
time, we need to change the variable back when being unloaded. So we
save the current value when loading and set it back when being
unloaded. We also need to call the ISupport builder a second time as
the core calls it before we destruct.
2019-11-18 11:07:19 +00:00
Matt Schatz
43da9c3232
Allow options:casemapping to remain defined when using m_nationalchars.
2019-11-18 11:07:19 +00:00
Peter Powell
2ec7654267
Deprecate Send{Channel,User}Notice; use SendMessage instead.
2019-11-17 22:37:24 +00:00
Peter Powell
8be79c0797
Make rehashing messages more consistent.
2019-11-17 22:23:51 +00:00
Peter Powell
687778b72e
Allow Channel::WriteNotice send to other servers and status ranks.
2019-11-17 22:17:42 +00:00
Peter Powell
b443df3938
Close connections when an I/O hook is configured but not loaded.
2019-11-16 22:05:42 +00:00
Peter Powell
d15e3bd110
Only show classbase ctor/dtor/cull messages in debug builds.
2019-11-16 22:05:42 +00:00
Peter Powell
586abc72da
Improve reading xlines from the server configuration.
2019-11-16 22:05:42 +00:00
Peter Powell
e8b476bea9
Refactor the MySQL code slightly.
2019-11-16 22:05:42 +00:00
Matt Schatz
05066eb189
SSL modules: send SNOTICE upon successful rehash.
2019-11-15 10:21:10 +00:00