server: remove set_npn_protocols() This function is deprecated in favour of set_alpn_protocols(), which is already called, and is currently broken in Python 3.10, so remove it altogether.
Fix compatibility with matrix-nio 0.21 The 0.21.0 made a breaking change in how they handle logging, moving off logbook to the standard logging module, breaking weechat-matrix's config module.
This patch adresses the API change (without migrating ourselves to logboox), and bumps the matrix-nio requirements to reflect the dependency on the new API.