blacklist DSPL 💔 (#1293)

This commit is contained in:
NotSoToothless
2026-06-01 13:16:43 -07:00
committed by GitHub
parent cb0a18f748
commit 38726d6340
3 changed files with 17 additions and 15 deletions
+4 -2
View File
@@ -42,7 +42,7 @@ from .utils import (
replay_session_dir,
SQ_BATTLES_DB_PATH,
SQUADRONS_DB_PATH,
BLACKLISTED_SERVER_IDS,
blacklisted_guilds,
DEFAULT_FOOTER_CAT,
compress_json,
decompress_json,
@@ -768,6 +768,8 @@ async def prune_invalid_channels(bot, mapping: dict[str, tuple[dict, list[tuple]
pruning so the dispatch step can decide between a real scoreboard and an
over-cap/wildcard-blocked warning.
"""
blacklist = blacklisted_guilds()
for sid in list(mapping):
game, targets = mapping[sid]
valid_targets: list[tuple] = []
@@ -787,7 +789,7 @@ async def prune_invalid_channels(bot, mapping: dict[str, tuple[dict, list[tuple]
continue
# Drop any target from a blacklisted server
if guild.id in BLACKLISTED_SERVER_IDS:
if guild.id in blacklist:
continue
# Check channel exists in Discord