Hide Playerbot accounts from search, character pages and guild rosters
Playerbots are ordinary accounts, not game masters, so hideGameMasters does not touch them. On a realm running mod-playerbots that means the armory is almost entirely bots: 1,377 characters listed, of which about 1,350 are bots. Adds two options, hideBotAccounts (default true) and botAccountPattern (default "RNDBOT%"), applied the same way the game master filter already works: left join the accounts we do not want, then require the join to have missed. A realm without bots matches nothing, so the default is harmless. Applied in the search listing, guild rosters, and the character lookup, so a bot's page 404s rather than rendering. The pattern is spliced into join clauses the query builder emits as raw SQL, so it cannot be a bound parameter. It comes from the operator's own config rather than from a request, but Utils.quoteSqlString quotes it so a stray apostrophe cannot produce a broken query. Verified against the live realm: listed before 1377 listed after 27 Spinnaker, Kdog shown Rarzosh (bot) hidden Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NW2ooBP2KPqQVzdZZDMvZd
This commit is contained in:
parent
ffdeacc0c4
commit
cc7ca06182
7 changed files with 61 additions and 0 deletions
|
|
@ -31,6 +31,8 @@ export class Config {
|
|||
public iframeMode: IIframeModeConfig;
|
||||
public loadDbcs: boolean;
|
||||
public hideGameMasters: boolean;
|
||||
public hideBotAccounts: boolean;
|
||||
public botAccountPattern: string;
|
||||
public transmogModule: boolean;
|
||||
public useZamCdn: boolean;
|
||||
public realms: IRealmConfig[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue