1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 22:03:13 +02:00

Add unreal_server_compat module which rewrites named extbans in

server to server traffic to be letter extbans.
Yeah this is a tad ugly, but the alternative was worse, see
header of the file for the full story.

Module is loaded by default (obviously).

Still to do: only do this for non-U6 servers (add some PROTOCTL)

And probably alter clean_ban_mask because I don't like the
magic on NULL client at the moment.
This commit is contained in:
Bram Matthys
2021-08-14 16:42:33 +02:00
parent f6704cfd1c
commit 5f31f7a5cc
6 changed files with 230 additions and 2 deletions
+1
View File
@@ -375,6 +375,7 @@ typedef struct {
int what; /**< MODE_ADD or MODE_DEL (for is_ok) */
int what2; /**< EXBTYPE_BAN or EXBTYPE_EXCEPT (for is_ok) */
int is_ok_checktype; /**< One of EXBCHK_* (for is_ok) */
int write_letter_bans; /**< If set to 1 then we will always use letter extbans */
} BanContext;
typedef struct Extban Extban;