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
38 lines
796 B
JSON
38 lines
796 B
JSON
{
|
|
"aowowUrl": "https://wowgaming.altervista.org/aowow",
|
|
"websiteUrl": "https://mywebsite.com",
|
|
"websiteName": "My Website",
|
|
"websiteRoot": "",
|
|
"iframeMode": {
|
|
"enabled": false,
|
|
"url": "https://mywebsite.com/armory"
|
|
},
|
|
"loadDbcs": true,
|
|
"hideGameMasters": true,
|
|
"hideBotAccounts": true,
|
|
"botAccountPattern": "RNDBOT%",
|
|
"transmogModule": false,
|
|
"useZamCdn": false,
|
|
"realms": [
|
|
{
|
|
"name": "AzerothCore",
|
|
"realmId": 1,
|
|
"authDatabase": "acore_auth",
|
|
"charactersDatabase": {
|
|
"host": "localhost",
|
|
"port": 3306,
|
|
"user": "acore",
|
|
"password": "acore",
|
|
"database": "acore_characters"
|
|
}
|
|
}
|
|
],
|
|
"worldDatabase": {
|
|
"host": "localhost",
|
|
"port": 3306,
|
|
"user": "acore",
|
|
"password": "acore",
|
|
"database": "acore_world"
|
|
},
|
|
"dbQueryTimeout": 10000
|
|
}
|