47 Commits

Author SHA1 Message Date
InspIRCd Robot
ae3e2db109 Update copyright headers. 2024-06-07 10:37:56 +01:00
Sadie Powell
d141f9c025 Make module classes specify their priority manually. 2023-02-27 20:29:56 +00:00
Sadie Powell
43d48a2e98 Move extension types to their own header to speed up build times. 2022-12-19 14:18:30 +00:00
Sadie Powell
6fc111ccb6 Rename session registration to connection to avoid a semantic conflict.
We previously referred to both session registration and user registration
as "registration" which is confusing for users who aren't familiar with
how IRC works.
2022-10-29 15:54:59 +01:00
Sadie Powell
648f813f8c Switch from NULL to nullptr. 2022-07-22 18:53:21 +01:00
Sadie Powell
8ab6b7230f Remove duplicate includes from module headers. 2022-01-25 16:20:45 +00:00
Sadie Powell
d79147e7af Abolish the infernal space before accessibility keywords. 2022-01-25 14:02:36 +00:00
Sadie Powell
40035385c6 Add constexpr to the initialisation of various const static fields. 2022-01-18 14:33:06 +00:00
Sadie Powell
fcc7b7cdb4 Allow toggling a capability from a Cap::Reference. 2021-07-16 18:39:47 +01:00
Sadie Powell
7d84e4900f Fix a ton of pedantic compiler warnings. 2021-04-04 23:42:15 +01:00
Sadie Powell
3b71f2068e Mark {From,To}{Human,Internal,Network} as noexcept. 2021-03-17 13:34:43 +00:00
Sadie Powell
e2f8e75ab8 Pascalize Set in extension item classes. 2021-03-17 06:07:41 +00:00
Sadie Powell
59ee026b3b Pascalize Get in extension item classes. 2021-03-17 05:58:47 +00:00
Sadie Powell
c22c7e5a99 Merge branch 'insp3' into master. 2021-02-28 19:16:40 +00:00
InspIRCd Robot
1bf7ca3894 Update copyright headers. 2021-02-26 06:58:13 +00:00
Sadie Powell
bb35650b57 Merge branch 'insp3' into master. 2021-01-29 18:15:32 +00:00
Sadie Powell
ebe3e3f3cf Allow converting a Cap::Reference to a Cap::Capability*. 2021-01-19 08:11:01 +00:00
Sadie Powell
a63b6e16df Merge branch 'insp3' into master. 2020-12-21 16:40:52 +00:00
Sadie Powell
6cfabb0064 Hide the server name/desc better when <options:hideserver> is set. 2020-12-20 03:05:29 +00:00
Sadie Powell
4e3d97546a Pascalize Cap::set and rename Cap::get to IsEnabled. 2020-07-20 12:16:48 +01:00
Sadie Powell
98e4ddfb21 Use C++11 inline initialisation for class members. 2020-02-06 11:25:42 +00:00
Sadie Powell
1de6f5b4a9 Merge branch 'insp3' into master. 2020-01-17 12:36:09 +00:00
InspIRCd Robot
aa692dc103 Update copyright headers. 2020-01-11 22:14:43 +00:00
Sadie Powell
eeb6dcec60 Replace LocalIntExt with IntExtItem. 2019-08-13 19:08:17 +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
Sadie Powell
c78ecdf579 Replace the override macro with the override keyword. 2019-01-25 02:52:11 +00:00
Peter Powell
58a0a7e014 Implement IRCv3 message tag support.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13 21:51:11 +01:00
Peter Powell
91e0af0fc4 Add the override keyword in places that it is missing.
GCCs warnings for this are much better than Clangs.
2017-11-21 15:51:45 +00:00
Attila Molnar
65667e7cc2 Fix Windows build and most MSVC warnings 2016-09-02 19:58:44 +02:00
Attila Molnar
c933f32408 m_cap Make Capability objects compatible with dynamic_references, add Cap::Reference 2015-12-05 16:42:17 +01:00
Attila Molnar
425d54073a m_cap Specialize extension item 2015-12-05 16:16:49 +01:00
Attila Molnar
302053cf8f m_cap Provide the OnCapValueChange event and add Cap::Manager::NotifyValueChange() 2015-12-05 15:58:48 +01:00
Attila Molnar
912fd7a922 m_cap Provide the OnCapAddDel() event 2015-12-05 15:57:00 +01:00
Attila Molnar
b9c6792cd6 m_cap Add Capability::GetCapValue(), list capabilities with values 2015-12-05 15:50:07 +01:00
Attila Molnar
9ac2eae1f0 m_cap Learn the supported capability negotiation protocol of a client from CAP LS
Let modules implementing caps query this information
2015-12-05 15:45:20 +01:00
Attila Molnar
3e08629e83 m_cap Add Capability::OnList() hook 2015-12-05 15:42:04 +01:00
Attila Molnar
bc388aa97c m_cap Add Capability::OnRequest() hook 2015-12-05 15:35:05 +01:00
Attila Molnar
259b111394 Add rewritten m_cap module
- Caps are now managed by m_cap
- Each cap uses one bit in an extension item shared with other caps
2015-12-05 15:29:01 +01:00
Attila Molnar
0528e83604 Nuke m_cap 2015-12-05 15:04:00 +01:00
Peter Powell
cd5d78203b Fix building modules that use cap.h with a C++11 compiler. 2015-03-06 16:13:11 +00:00
Attila Molnar
f3ef8a230c Convert the CAP event to use the new cross-module event system 2015-02-11 17:01:00 +01:00
Attila Molnar
971788e42f Allow enabling/disabling caps via GenericCap::SetActive() 2015-02-11 16:52:39 +01:00
Attila Molnar
4fc2f7199e Specify which Extensible subclass an ExtensionItem is valid for 2015-01-18 10:40:33 +01:00
Attila Molnar
d02011d69f Remove whitespace and minor style changes 2014-01-23 14:37:09 +01:00
attilamolnar
992674362c Automatically register ServiceProviders created by modules 2013-09-08 17:11:08 +02:00
Peter Powell
11cafc12d5 Tidy up source files:
- Use #pragma once instead of include guards.
- Move header files in src/modules to include/modules.
- Fixed various spacing issues.
2013-04-12 17:03:05 +01:00