Commit Graph
79 Commits
Author SHA1 Message Date
Luca Matei Pintilie 6ed185a8a5 add archive_expires_after option 2026-01-10 18:59:34 +01:00
Luca Matei Pintilie 51930c1e78 add default_persistence_allowed
In addition set all config options in every test, as catch2 can run
tests out of order and as demonstrated in
e1ad60af4f this can be an issue
2025-11-28 21:54:38 +01:00
Luca Matei Pintilie fbb93dbd08 add persist_user_denylist and persist_user_allowlist
Closes: #3511
2025-11-28 21:54:38 +01:00
Florian Schmaus 049da90ded utils/sha1.cpp: add missing <cstdint> include
Fixes compilation with GCC 13.

Downstream Gentoo bug: https://bugs.gentoo.org/902471

Signed-off-by: mathieui <mathieui@mathieui.net>
2023-10-06 00:10:46 +02:00
louiz’ 189015afb4 Conditionally compile the SASL code only with botan and database 2020-07-29 00:37:24 +02:00
louiz’ 2e1ddeb654 Implement SASL plain authentication 2020-06-15 00:18:51 +02:00
louiz’ 655bc344d4 Add a missing ostream include
Makes the build fail, on some condition.

fix #3434
2020-05-26 21:06:36 +02:00
louiz’ 10d683354b Fix clang warnings on some utils function. It’s also faster 2020-05-04 23:55:39 +02:00
louiz’ c91fac82da Fix a std::move() warning with clang 2020-05-02 21:43:48 +02:00
louiz’ 7571020243 Make is_empty work with any integral type 2019-11-06 17:47:35 +01:00
louiz’ b7b54d8f0e Trivial cleanup 2019-09-23 22:08:48 +02:00
louiz’ 7c660c3f39 Add a missing pragma once 2019-09-23 22:08:36 +02:00
louiz’ 6ab064d04d USe safer functions, gmtime_r and localtime_r 2019-09-23 22:07:57 +02:00
louiz’ a3e865ad63 Fix a signed/unsigned mismatch 2018-08-24 22:49:31 +02:00
louiz’ 7d0df9b6dd Disable the throttle limit if negative
Also, invalid values result in -1 being set
2018-08-23 22:18:49 +02:00
louiz’ 8997021b2e Fix two more warnings 2018-08-23 21:28:06 +02:00
louiz’ b1564e4ddc Fix a bunch of int to unsigned int conversion warnings 2018-08-23 20:31:31 +02:00
louiz’ 0b51e38281 MaxHistoryLength now has some sensible default value if the user set a negative one 2018-08-23 20:30:11 +02:00
louiz’ d7bc737751 Add two missing ref 2018-08-23 18:54:16 +02:00
louiz’ 89ad479ef4 Remove a useless fill_duration member 2018-08-04 16:04:33 +02:00
louiz’ 09b10cc801 Throttle all commands sent to IRC servers
fix #3354
2018-06-25 22:54:32 +02:00
louiz’ 61de6b1dac Revert "Use a different Date data type"
This reverts commit 857c7d3972.
2018-04-24 20:25:40 +02:00
louiz’ e4f111accb Remove two unused (julianday) functions 2018-04-13 23:37:29 +02:00
louiz’ 857c7d3972 Use a different Date data type
PLEASE backup your database before testing this commit, and report any
migration issue.

In postgresql, we use timestamp with timezone.
In sqlite3 we use REAL (the date is expressed as julianday)

This requires a migration of the muclogline_ table:
In postgresql it’s pretty simple, we convert all the integer into timestamps

With sqlite3, we actually rename the table, create the new one with the
correct type, then copy everything to the new table, with a conversion
function for the Date_ column, and then we delete the old table.

fix #3343
2018-04-11 00:25:18 +02:00
louiz’ 9500bfd4cc Reflect message IDs in channel MUCs
fix #3283
2018-03-18 19:33:07 +01:00
louiz’ 03714c6ceb Revert "Use std::optional<bool> instead of OptionalBool"
This reverts commit ba879a882e.
2018-03-17 17:28:47 +01:00
louiz’ ba879a882e Use std::optional<bool> instead of OptionalBool 2018-03-16 01:13:50 +01:00
louiz’ 1ebd8a2321 Fix conversion warnings on 32 bits 2018-02-04 16:58:04 +01:00
louiz’ e267512ad4 Restore the is_one_of variable template 2018-01-25 02:22:19 +01:00
louiz’ 33a5f1355d Remove a variable template usage
Because it’s only supported in gcc>=5.0
2018-01-25 01:22:35 +01:00
louiz’ 7e64a2e361 Add a DEBUG_SQL_QUERIES to log info about the executed SQL queries
fix #3324
2018-01-14 21:46:49 +01:00
louiz’ 0168b96b79 Add postgresql support 2017-12-02 20:08:47 +01:00
louiz’ ffb402f0ad Drop support for botan < 2.0
fix #3274
2017-07-20 21:22:58 +02:00
louiz’ 4d55a120d8 Re-implement correctly the handling of failure to open the database
If we can’t open it at startup, we exit.
If we can’t open it on reload, we keep the previously-opened database.

This way, we’re assured to always have a valid and open database available.
2017-06-21 17:41:03 +02:00
louiz’ e75d7ad8ea Add a Record History option in the Channel configuration form
fix #3269
2017-06-16 10:48:54 +02:00
louiz’ 40db183e37 Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions table
ref #3269
2017-06-16 09:54:36 +02:00
louiz’ 8d1d822edf Explicitely close the Database before re-opening it 2017-06-14 00:19:15 +02:00
louiz’ 50cadf3dac Implement our own database ORM, and update the whole code to use it
Entirely replace LiteSQL

fix #3271
2017-06-14 00:19:15 +02:00
louiz’ 19ed2e7f5f Fix the datetime parsing to handle optional fractions of seconds
fix #3266
2017-05-23 11:46:14 +02:00
louiz’ 7b3e0e0cf3 Make botan’s policy configurable from a file
fix #3244
2017-04-30 15:14:54 +02:00
louiz’ 3238404753 Avoid adding more that one “XMPP reconnection” timed event at the same time
Fix a semblance of infinite and busy loop, that could occur if biboumi’s
poller is woken up multiple times while the XMPP server is not reachable.
2017-04-17 14:47:21 +02:00
louiz’ 68d6b82940 Properly handle multiline topics
fix #3254
2017-04-09 23:05:32 +02:00
louiz’ 8a912ea3a3 Apply a few clang-tidy cppcoreguidelines-* fixes 2017-04-07 11:10:51 +02:00
louiz’ ccb4ee098f Apply all the clang-tidy misc-* fixes 2017-04-07 18:53:12 +02:00
louiz’ 5402a256d1 Apply all the clang-tidy modernize-* fixes 2017-04-07 18:45:24 +02:00
louiz’ 1a09c965eb Remove two sneaky log_debug 2017-03-29 23:32:43 +02:00
louiz’ 28a537a90a Make things work with botan < 1.11.34 2017-03-14 21:47:09 +01:00
louiz’ 0ab40dc1ab Refactoring louloulibs and cmake
Use OBJECT libraries
Remove the louloulibs directory
Write FOUND variables in the cache
2017-03-14 21:45:23 +01:00
louiz’ e13d3fdf4d Move get_first_non_empty to louloulibs/utils 2016-08-22 21:29:22 +02:00
louiz’ 992fa93895 Add get_first_non_empty and use it into Database to simplify a little bit 2016-08-21 01:51:52 +02:00