Sadie Powell
09c587bed0
Remove TR1 compatibility layer.
...
This isn't necessary now we use C++17.
2022-03-01 05:09:29 +00:00
Sadie Powell
091c0eea28
Rip out check_functions().
...
This isn't actually used anywhere and just slows down the build.
2022-01-13 01:42:46 +00:00
Sadie Powell
eaaabd8de0
Rip out calculate_depends().
...
This code is incredibly error prone and it just duplicates behaviour
that CMake already implements with depend.make files.
2022-01-13 01:42:38 +00:00
Sadie Powell
23ac008cc1
Remove NO_CLIENT_LONG_LONG from the mysql module.
...
This is not necessary now we use C++17.
2022-01-13 01:12:05 +00:00
Sadie Powell
33b42ce86e
Use the default CMake modules for finding gettext instead of our own.
2022-01-12 23:05:25 +00:00
Sadie Powell
a631028660
Merge branch '2.0' into 2.1.
2022-01-12 22:08:35 +00:00
Sadie Powell
0e6f8488d3
Avoid duplicate checks in irc2sql.
2022-01-10 16:20:56 +00:00
Filippo Cortigiani
56687c27cb
Fix ns_resetpass not returning a response for XMLRPC ( #243 )
...
Co-authored-by: filippo nicola cortigiani <simos@H7-25.fritz.box >
2022-01-10 16:12:33 +00:00
k4bek4be
9b0c7929d9
Multiple updates for unreal4 protocol ( #285 )
...
* Parse PROTOCTL PREFIX and PROTOCTL USERMODES
* Add several previously unhandled modes
* Fix incorrect SJOIN prefix handling
* Enable message tags sending from ircd
* Add timedban matcher
* Add operclass matcher
* Store all client and channel moddata.
* Call unreal's internal unban on /cs unban
* Check for ~a:0 ban
* Add country ban matcher
* Use +B umode for services bots
2022-01-10 15:50:17 +00:00
Michael Wobst
c38106211c
Adjust IsIdentValid test to comply with upcoming ircd-hybrid release ( #272 ).
...
hybrid.cpp: adjust IsIdentValid test to comply with upcoming ircd-hybrid where
user names may only consist of [A-Za-z0-9._-] and may not begin with '.', '-',
or '_'.
As a side effect this fixes an issue where currently it is possible to introduce
bots whose user name starts with (non-alnum) characters considered invalid for
ircd-hybrid leading to a services shutdown due to a nick introduction/kill loop.
2022-01-09 15:25:09 +00:00
Sadie Powell
b8bcad048e
Update the copyright headers for 2022.
2022-01-06 23:15:44 +00:00
Sadie Powell
8eb6a4da71
Update more IRCServices references to reflect the current project.
...
- If referring to the specific piece of software use "Anope".
- If referring to services in general use "services".
2022-01-04 14:11:07 +00:00
Sadie Powell
ec7dfb3675
Use C++11 header names instead of their deprecated equivalents.
2022-01-04 12:36:35 +00:00
Sadie Powell
106750db77
Replace all uses of push_back with emplace_back.
2022-01-04 12:28:55 +00:00
Sadie Powell
7d1047490e
Consistently use #pragma once across all header files.
...
This replaces a mixture of no include guards, ANOPE_FOO_H, and FOO_H.
2022-01-04 12:10:32 +00:00
Sadie Powell
c9f93eeaed
Merge branch '2.0' into 2.1.
2022-01-04 00:39:34 +00:00
Sadie Powell
eb81f22a5b
Modernize CXXFLAGS on Unix and enable -Werror on CI.
...
Also clear up warnings that this exposed.
2022-01-04 00:39:05 +00:00
Sadie Powell
a31a7f5a6c
Use C++11 default initializers and destructors where possible.
2022-01-04 00:17:19 +00:00
Sadie Powell
7531e90499
Use C++11 style class/struct initialisation.
2022-01-04 00:17:13 +00:00
Sadie Powell
ba2c82e2f5
Fix some minor issues discovered whilst working on 2.1.
2022-01-03 19:37:33 +00:00
Sadie Powell
a5f7aac295
Replace anope_{final,override} with their C++11 equivalent.
2022-01-03 19:02:44 +00:00
Sadie Powell
fd1ca96e2c
Merge branch '2.0' into 2.1.
2022-01-03 15:50:22 +00:00
Sadie Powell
a1a1b3ad01
Add a build time check that OpenLDAP is reentrant.
2021-12-28 19:20:23 +00:00
Robert Scheck
7a28d81b44
Reflect OpenLDAP 2.5 upstream change from libldap_r to libldap
...
Starting with OpenLDAP 2.5 upstream decided to merge the non-threaded
libldap_r library into the threaded libldap library. And starting with
OpenLDAP 2.6 common Linux distributions such as Fedora do not ship the
compatibility symbolic link anymore (which leads to a build failure),
thus the linking tests for libldap_r and uses alternatively libldap.
See also:
- https://lists.openldap.org/hyperkitty/list/openldap-announce@openldap.org/thread/BH3VDPG6IYYF5L5U6LZGHHKMJY5HFA3L/
- https://bugzilla.redhat.com/show_bug.cgi?id=2032707
2021-12-28 19:20:03 +00:00
Sadie Powell
4efc2c219b
Send mode changes from ChanServ if the channel is not registered.
...
Avoids calling WhoSends() on a null pointer.
2021-12-03 07:11:37 +00:00
Sadie Powell
754c82d047
Remove undefined behaviour around checking if this is null.
2021-11-30 11:04:19 +00:00
Sadie Powell
595bc09ec1
Merge branch '2.0' into 2.1.
2021-11-30 09:50:33 +00:00
Sadie Powell
64f65b035e
Fix some message params being sent as <middle> instead of <trailing>.
2021-11-20 19:54:56 +00:00
Sadie Powell
a736b54ef1
Use the server name as the enforcer hostname if not otherwise set.
2021-11-14 20:45:01 +00:00
Sadie Powell
27cff11e31
Increase the default channel expiry to 30 days.
2021-10-17 19:46:29 +01:00
Sadie Powell
b7da27ad3a
Increase the default nickname expiry to 90 days.
2021-10-17 19:44:05 +01:00
Sadie Powell
1cab1d32c2
Send the oper mode for services pseudoclients on InspIRCd.
2021-08-29 18:37:12 +01:00
Sadie Powell
e7e8447fa3
Deduplicate code for checking if a user is securely connected.
2021-08-01 19:23:48 +01:00
Sadie Powell
561b205c4a
Merge branch '2.0' into 2.1.
2021-08-01 18:53:24 +01:00
Adam
91321bdf68
webcpanel: fix command source ip to use extforward ip
2021-07-24 12:09:12 -04:00
Josh Soref
fd88b756fc
Fix various spelling issues ( #274 ).
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >.
2021-06-17 15:02:30 +01:00
Sadie Powell
8d1bc95faf
Use the InspIRCd-sent maxlist size instead of networkinfo:modelistsize.
2021-06-04 02:19:54 +01:00
Sadie Powell
e67c2d5632
Add support for per-mode list limits.
2021-06-04 02:12:09 +01:00
Sadie Powell
376053e0ac
Allow protocol modules to declare that the IRCd supports tags.
...
This is not being used currently but will be soon.
2021-06-01 00:21:41 +01:00
Sadie Powell
cadc6f48e6
Remove nickserv:strictpasswords as it is now obsolete.
2021-05-31 21:44:10 +01:00
Sadie Powell
b6665d5eb9
Add the nickserv:minpasslen option.
2021-05-31 21:16:06 +01:00
Sadie Powell
95955ae069
Rename nickserv:passlen to nickserv:maxpasslen.
2021-05-31 21:00:43 +01:00
Sadie Powell
df4313f5bb
Merge branch '2.0' into 2.1.
2021-05-31 20:57:48 +01:00
Sadie Powell
3728a0bda1
Fix some misleading indentation in ns_register.
2021-05-31 20:53:29 +01:00
Sadie Powell
a040f17787
Use InnoDB instead of the deprecated MyISAM engine.
...
Ref: https://www.percona.com/blog/2016/10/11/mysql-8-0-end-myisam/
2021-04-27 23:21:07 +01:00
Sadie Powell
6274bd0b34
Use utf8mb4 instead of utf8 in chanstats and irc2sql.
...
The utf8 charset, confusingly, is an alias for utf8mb3 which is not
a real UTF-8 encoding as it can only store three byte characters.
The real UTF-8 charset is utf8mb4.
2021-04-27 23:18:04 +01:00
Sadie Powell
095a25d473
Add the anope_override keyword to methods that lack it.
2021-04-27 21:41:19 +01:00
Sadie Powell
53cd3f47b5
Use elseif in CMake where possible.
2021-04-27 19:20:39 +01:00
Sadie Powell
c21f6eb5a3
Rip out compatibility code for now-unsupported CMake versions.
2021-04-27 19:20:36 +01:00
Sadie Powell
e2aeab970b
Remove the repeated conditions in cmake endif/else statements.
2021-04-27 17:49:21 +01:00