MantisBT - Zandronum
View Issue Details
0002788Zandronum[All Projects] Suggestionpublic2016-07-18 22:492025-01-15 16:42
AlexMax 
Kaminsky 
normalfeatureN/A
needs testingopen 
 
3.2 
0002788: Multiple banlist support
It would be nice to be able to have multiple banlists at the same time. Separate the files by colons or semicolons like a PATH, and any operations done that require writing a ban from inside the server only occur on the first/last file.
It might help with a few things:

1. Organization. The first file could contain short term bans that are written to by rcon, known proxies could exist in a second read-only file, and long-term bans that are updated by hand could exist in a third read-only file.
2. Synchronization. Instead of somehow trying to sync a single banfile between two servers using NFS or rsync or something, you could list your servers' local ban file first, then list your other clusters bans afterwards that could automatically be rsynced over on a set schedule with no extra logic needed.
No tags attached.
Issue History
2016-07-18 22:49AlexMaxNew Issue
2016-10-10 00:53MarcaekNote Added: 0015874
2017-07-03 01:14Dark-AssassinNote Added: 0017973
2025-01-15 16:42KaminskyNote Added: 0024201
2025-01-15 16:42KaminskyAssigned To => Kaminsky
2025-01-15 16:42KaminskyStatusnew => needs testing
2025-01-15 16:42KaminskyTarget Version => 3.2

Notes
(0015874)
Marcaek   
2016-10-10 00:53   
TSPG could really use this, considering we host the majority of played Zandronum servers these days it would really help a lot of people.
(0017973)
Dark-Assassin   
2017-07-03 01:14   
Any chance this could be addressed before 3.0's official release?
(0024201)
Kaminsky   
2025-01-15 16:42   
I'm happy to announce that Zandronum recently got support for loading multiple banlists (and ban exemption lists):'https://foss.heptapod.net/zandronum/zandronum-stable/-/commit/7aafd5a1e8d1c752ca8febeec83a76619528e5cf [^]'

Server hosts can now load extra ban (exemption) files by separating the filenames with semicolons when setting sv_banfile or sv_banexemptionfile. For example: sv_banfile "banfile1.txt;banfile2.txt;banfile3.txt".

CCMDs like "ban", "ban_idx", "addban", etc. also support an extra optional argument to choose which file to add or remove an entry from. Not providing enough arguments to the CCMD will list the indices of all loaded files so that hosts/admins know which one to choose (if unspecified, 0 is used, which represents the first file loaded).