Config/docs: resolve duplicate helper name and IRC docs link

This commit is contained in:
Vignesh Natarajan
2026-02-09 19:49:39 -08:00
parent bdf362bf12
commit b260edf44c
2 changed files with 3 additions and 3 deletions

View File

@@ -175,7 +175,7 @@ Notes:
- `toolsBySender` keys can be a nick (e.g. `"eigen"`) or a full hostmask (`"eigen!~eigen@174.127.248.171"`) for stronger identity matching.
- The first matching sender policy wins; `"*"` is the wildcard fallback.
For more on group access vs mention-gating (and how they interact), see: [/concepts/groups](/concepts/groups).
For more on group access vs mention-gating (and how they interact), see: [/channels/groups](/channels/groups).
## NickServ

View File

@@ -747,7 +747,7 @@ const FIELD_PLACEHOLDERS: Record<string, string> = {
const SENSITIVE_PATTERNS = [/token/i, /password/i, /secret/i, /api.?key/i];
function isSensitivePath(path: string): boolean {
function isSensitiveConfigPath(path: string): boolean {
return SENSITIVE_PATTERNS.some((pattern) => pattern.test(path));
}
@@ -778,7 +778,7 @@ export function buildBaseHints(): ConfigUiHints {
export function applySensitiveHints(hints: ConfigUiHints): ConfigUiHints {
const next = { ...hints };
for (const key of Object.keys(next)) {
if (isSensitivePath(key)) {
if (isSensitiveConfigPath(key)) {
next[key] = { ...next[key], sensitive: true };
}
}