The user has configured their nick and that's what we should use. If
they send a nick change, just reply letting them know what their nick
actually is.
Rather than trying and hoping the server gives a proper failure, just
fail early and avoid the whole mess. Some servers will instead send
messages to the user, etc, which is not very helpful.
* 'user/luca/xmpp-caps' of https://codeberg.org/aninternettroll/biboumi:
Don't hardcode ver, update node name, and add tests
Allow disco queries with a node (needed for CAPS)
Add gateway/irc and caps
* https://codeberg.org/poezio/biboumi: (65 commits)
build: fix wrong constextpr preventing some compilers from building biboumi
database: various optimizations for SQLite and PostgreSQL
doc(admin): format verify_certificate documentation into a list
Fix RPM builds on Fedora Linux
Systemd service dir is /usr/lib/systemd/system
cmake: Explicitly search for Catch2 version 3
add CAP LS 302 support and max-lines support for draft/multiline messages
install files using GNUInstallDirs
change to direct /doc/
Fix link to documentation
fix multiline private messages
add archive_expires_after option
Fix documentation warnings
fix fedora package
add ctest support and remove absolute path from etc directory
Rename Ports to Unencrypted ports
build docker image from local files, not git clone
update some version strings
add default_persistence_allowed
add persist_user_denylist and persist_user_allowlist
...
* Add missing build dependency
* Fix bogus date in %changelog
* Fix path to the systemd unit
* Use SPDX license identifier
Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
The current CMakeLists block
find_package(Catch2)
if(Catch2_FOUND)
target_link_libraries(test_suite Catch2::Catch2WithMain)
include(CTest)
include(Catch)
catch_discover_tests(test_suite)
endif()
would search for any Catch2 version, but later tries to link against
Catch2 version 3 (Catch2WithMain). This means the block would fail on
systems that have Catch2 version 2 installed, but not Catch2 version
3. Fix that by requesting Catch2 version 3 when invoking
find_package().
Link: https://bugs.gentoo.org/969522
Some packagers use ctest by default to run tests. This is a small
easy-win to add to biboumi. In addition some distros don't use /etc as
their configuration path, and have to patch this out (see guix and nix),
so this is also an easy fix.
These tests require that fixed_irc_server is set, and will fail if
another test sets them.
This may not have been a problem before, but since the catch2 update CI
has encountered issues running these tests randomly, as the order of
which tests are ran in is now random.
since fedora does not package botan3 yet, we would be stuck with a
non-TLS biboumi which cannot run the e2e tests as well as provide no
security whatsoever.