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
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
7531e90499
Use C++11 style class/struct initialisation.
2022-01-04 00:17:13 +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
e7e8447fa3
Deduplicate code for checking if a user is securely connected.
2021-08-01 19:23:48 +01: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
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
Robby
c5a4e8337c
Update copyright to 2021.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2021 Anope Team/i' {} \;
2021-01-07 03:31:08 +01:00
Sadie Powell
a3c7f716bd
Fix the query used by IRC2SQL for updating server information.
2020-10-21 16:26:08 +01:00
Robby
d319fc6eb5
m_chanstats: Make ChanServ's HELP SET CHANSTATS translatable too. ( #253 )
...
Also refresh the language files while at it.
2020-01-07 02:45:30 +01:00
Robby
c8699c6726
Update copyright to 2020.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2020 Anope Team/i' {} \;
2020-01-04 15:51:20 +01:00
Peter Powell
6617d29b52
Fix a bunch of broken indentation.
2019-12-14 18:38:13 +00:00
Peter Powell
14ee76a0ad
Fix various typos.
2019-09-23 14:48:49 +01:00
Robby
6fbb7cffe9
Update copyright to 2019.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2019 Anope Team/i' {} \;
2019-01-01 17:43:35 +01:00
Robby
e03ae0cd85
Update copyright to 2018.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2018 Anope Team/i' {} \;
2018-04-25 19:22:13 +02:00
Adam
010d20198e
m_regex_posix: use REG_ICASE
2017-03-30 19:10:31 -04:00
Robby
76ce8ece1a
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
2017-01-17 05:03:25 +01:00
Robby
8656b65e39
Update copyright to 2017.
...
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2017 Anope Team/i' {} \;
Added missing copyright headers to files that didn't have it yet.
2017-01-16 03:13:25 +01:00
Adam
a5fdf7c546
irc2sql: fix changing status modes to update ison modes
2016-11-05 10:36:28 -04:00
Adam
7453c71c00
irc2sql: fix crash on shutdown with no sql
2016-11-05 10:34:25 -04:00
Adam
f09ea316dd
irc2sql: update max topic len to 512
2016-11-05 10:34:09 -04:00
Adam
ac0f3c5ccf
m_mysql: null empty columns instead of setting to ''
2016-11-04 22:56:15 -04:00
Adam
76ea111980
irc2sql: fix a couple SQL errors
2016-11-04 22:07:00 -04:00
Adam
3a8ff5d456
Merge pull request #177 from attilamolnar/2.0+sqliteleak
...
m_sqlite: Fix possible memory leak when opening a database fails
2016-09-25 14:37:01 -04:00
Adam
13c5eec00a
m_ssl_openssl: allow certificate chain files to be used
2016-09-05 10:41:52 -04:00
Attila Molnar
de174149f7
m_sqlite: Fix possible memory leak when opening a database fails
2016-08-17 14:09:05 +02:00
Peter Powell
f4f6787c9c
Remove support for DH-AES and DH-BLOWFISH.
...
These SASL mechanisms are considered insecure and should not be
used anymore.
2016-04-13 20:26:50 +01:00
Robby
f118960a25
Update copyright to 2016. This was done with:
...
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \;
Added missing copyright headers to files that didn't have it yet.
Fixed some whitespace and blank lines along the way.
2016-01-28 20:24:49 +01:00
Adam
9645f53dc8
Update m_ssl_gnutls Windows library version to libgnutls-30
2016-01-23 22:25:19 -05:00
Adam
41802c28c6
Fix m_sql_oper to compile from the cleanup of the other day
2016-01-23 20:45:10 -05:00
Adam
164b349ef9
Fix various inconsistencies/crashes related to having multiple opers configured for the same user through combinations of os_oper/config/m_sql_oper
2016-01-19 16:25:02 -05:00
Adam
93a92bb73b
Clear regex xlines on unload, which happens on shutdown, even though they are perm modules
2015-09-23 14:55:28 -04:00
Adam
907e192aab
Merge pull request #126 from SaberUK/2.0+typos
...
Fix a ton of typos.
2015-09-06 16:11:50 -04:00
Adam
dfc18db1dd
Remove unused variables from m_ldap
2015-07-23 08:25:28 -04:00
Adam
63dbd7fbf0
Set LDAP_OPT_PROTOCOL_VERSION 3 etc on reconnect, too
2015-07-23 08:23:48 -04:00
Peter Powell
1666b1a8d8
Fix a ton of typos.
2015-07-08 11:06:02 +01:00
Jyzee
a458f7c840
irc2sql: handle away messages.
2015-04-30 19:29:44 +02:00
Adam
c070a00114
Fix m_ldap_oper to build
2015-03-22 15:34:49 -04:00
Adam
5fc72660e4
Merge pull request #113 from attilamolnar/2.0+openssl
...
m_ssl_openssl: SSL context option changes
2015-03-12 17:53:52 -04:00
Attila Molnar
1bee18fcf4
m_ssl_openssl: Allow disabling SSLv3 via the config
2015-03-12 19:35:07 +01:00
Attila Molnar
a57e41304f
m_ssl_openssl: Set sane default context options
2015-03-12 19:35:07 +01:00
Adam
fb17bc85ea
Redesign m_ldap to no longer rely on undefined behavior
...
Accessing the same LDAP* from multiple threads at once is always
undefined, even if one thread is just polling ldap_result.
Instead keep one thread per connection and issue blocking queries on the
thread.
2015-03-11 08:48:08 -04:00
Adam
845ca576b4
More properly track topic change sources and allow users with access to change topics through topiclock
2015-01-28 22:57:15 -05:00
Adam
4fc71bb22f
Link m_ldap against ldap_r not ldap
2014-12-02 15:49:14 -05:00
Adam
b940077553
Validate credentials sent via sasl more
2014-10-16 21:38:46 -04:00
Adam
0cd3bfa24f
Fix module event prioritization which was broken with the newer
...
auto-attach event stuff.
Also remove logically dead code from os_defcon, and make os_defcon akill
similar masks to os_session when enforcing session akills.
Fixes #1618 which relies on os_session to be prioritized before
os_defcon.
2014-10-14 18:58:55 -04:00