3055 Commits

Author SHA1 Message Date
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
914d8140d9 Use meaningful variable names in consolecolors. 2019-12-08 19:12:56 +00:00
Sadie Powell
034dad6ab0 Merge branch 'insp3' into master. 2019-12-08 17:47:07 +00:00
Peter Powell
7f36a33713 Bump the InspIRCd ABI version. 2019-12-03 12:25:12 +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
bef13bcae3 Add some overloads of IRCv3::Replies::Reply#Send. 2019-11-25 14:10:42 +00:00
Peter Powell
2ec7654267 Deprecate Send{Channel,User}Notice; use SendMessage instead. 2019-11-17 22:37:24 +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
Sadie Powell
7b68936321 Merge branch 'insp3' into master. 2019-11-13 15:24:45 +00:00
Peter Powell
43fb2f9972 Add GetId() to the SQL::Provider class. 2019-11-13 12:58:18 +00:00
Peter Powell
318b40dd70 Allow event providers to know when a listener subs or unsubs. 2019-10-21 12:06:37 +01:00
Peter Powell
c61a37790d Switch ChildMap and EntryMap to insp::flat_map. 2019-10-18 12:36:55 +01:00
Peter Powell
e3deb78340 Add an event which is fired when the server shuts down. 2019-10-17 17:17:39 +01:00
Peter Powell
d0f802e30c Implement serialisation of users.
This allows for various things which will be coming in the future.

e.g. Transferring users to another server on upgrade.
2019-10-14 11:03:03 +01:00
Peter Powell
51b9b4c9b4 Add GetTypeStr to the DNS API. 2019-10-13 22:05:19 +01:00
Peter Powell
4d2391ee09 Show the list modes which have variable list lengths in 005. 2019-10-01 12:32:40 +01:00
Peter Powell
554308f654 Add null pointer checks to IS_{LOCAL,REMOTE,SERVER}.
I don't know of any places this causes issues but its better to be
safe than sorry.
2019-09-29 19:52:05 +01:00
Peter Powell
65f74be719 Add the OnServerBurst hook and fix the docs for OnServerLink. 2019-09-23 13:18:21 +01:00
Peter Powell
cf5d382b82 Add whether the server split with an error to OnServerSplit. 2019-09-23 13:18:19 +01:00
Peter Powell
a4305d8f3c Add the server id to the Server class. 2019-09-23 13:18:14 +01:00
Sadie Powell
8848169e8b Merge branch 'insp3' into master. 2019-09-23 00:37:33 +01:00
Peter Powell
0d6a4a31d8 Add GetNumericToken to sepstream.
This removes some boilerplate when retrieving numeric types.
2019-09-03 12:28:58 +01:00
Peter Powell
5cf6f65044 Document ConfigStatus and add a way to detect the initial load. 2019-09-02 15:17:30 +01:00
Peter Powell
400de0ab00 Release v3.3.0. 2019-08-23 11:14:07 +01:00
Sadie Powell
eeb6dcec60 Replace LocalIntExt with IntExtItem. 2019-08-13 19:08:17 +01:00
Sadie Powell
07ed06ebe5 Rewrite and merge LocalStringExt, StringExtItem. 2019-08-13 18:12:59 +01:00
Sadie Powell
21664767f0 Move the Module parameter of ExtensionItem et al to the start.
This matches what other ServiceProvider types do.
2019-08-13 17:36:19 +01:00
Sadie Powell
b39bd5f49c Rename ExtensionItem::free to ExtensionItem::Delete. 2019-08-13 16:59:04 +01:00
Sadie Powell
aca4503481 Merge branch 'insp3' into master. 2019-08-13 15:43:26 +01:00
Peter Powell
0827c5c742 Free StringExtItem and SimpleExtItem values correctly. 2019-08-13 15:02:25 +01:00
Peter Powell
703ba72071 Convert LocalExtItem to a typedef and deprecate it. 2019-08-13 15:02:25 +01:00
Sadie Powell
23448e2255 Remove remnants of the old ExtensionItem serialisation system.
Also rm LocalExtItem whilst we are at it as it is now obsolete.
2019-08-09 04:07:44 +01:00
Sadie Powell
7c7de81b6d Merge branch 'insp3' into master. 2019-08-09 04:07:33 +01:00
Peter Powell
714284aa30 Convert all core ExtensionItem code away from {un,}serialize. 2019-08-07 19:37:27 +01:00
Peter Powell
85182d727c Add {To,From}{Human,Internal,Network} to ExtensionItem.
Also, deprecate the old SerializeFormat/serialize/unserialise API.
2019-08-07 16:38:15 +01:00
Peter Powell
704f0fca5f Document ExtensionItem better. 2019-08-07 13:32:28 +01:00
Sadie Powell
ada6646b65 Merge branch 'insp3' into master. 2019-07-27 19:12:29 +01:00
Peter Powell
193eac6490 Fix various cases of broken indentation. 2019-07-26 10:22:42 +01:00
Peter Powell
8fe455f1da Add support for the IRCv3 standard replies extension.
This extension provides a framework for other extensions to send
standard replies to clients as an alternative to numerics.
2019-07-25 14:32:47 +01:00
Peter Powell
abdc47a615 Add a constant for the maximum length of a mode parameter. 2019-07-23 15:17:01 +01:00
Peter Powell
438a088b51 Add the time tag on the server the message originates from. 2019-07-22 12:40:37 +01:00
Peter Powell
5f387071d3 Add a method for swapping user I/O handlers. 2019-07-21 16:57:19 +01:00
Peter Powell
850b7a3ace Allow modules to prevent a failed connection from being closed. 2019-07-21 13:50:01 +01:00
Peter Powell
e2fcf7b3b1 Add an event for adding tags to S2S messages. 2019-07-19 14:17:10 +01:00
Sadie Powell
5226776fd9 Remove code relating to v3 API changes and v2 module compatibility. 2019-07-18 17:45:00 +01:00
Sadie Powell
cd8b456f97 Merge branch 'insp3' into master. 2019-07-16 16:48:18 +01:00
Peter Powell
06e2961a86 Split ServerEventListener into {Broadcast,Link,Sync}EventListener.
There is no reason to have these events in one big handler and it
causes unnecessary event hooks to be created by having them like
this.

The ServerEventListener class still exists for compatibility
2019-07-15 12:55:48 +01:00
iwalkalone
2ab383f707 Add OnUserPreQuit event to allow modules to change quit messages (#1629). 2019-06-24 14:46:54 +01:00