mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-27 12:06:39 +02:00
64e5de4c8c
This was documented as optional in include/modules.h but on https://www.unrealircd.org/docs/Dev:Extended_Bans_API it was always mentioned as required. In practice, I know of no module that does not have this, in UnrealIRCd or third party (doing zero filtering is quite a bad idea). Anyway, long story short: this also means we can remove some (flawed) logic in src/api-extban.c in case conv_param was NULL, which raised a compiler warning: api-extban.c: In function ‘extban_conv_param_nuh_or_extban’: cc1: error: function may return address of local variable [-Werror=return-local-addr] api-extban.c:382:14: note: declared here 382 | char tmpbuf[USERLEN + NICKLEN + HOSTLEN + 32]; | ^~~~~~