From 71658292e403784b42d0cc82b801cbb5ac611331 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 12 Nov 2026 09:41:35 -0700 Subject: names: paff.club, a domain without the coinos welcome DM. Each PAFF node gets a lightning address and NIP-05 under paff.club from this registrar (Adam, 2026-11-12: "re-use the same name server that's on the cs machine for v3 and let it handle paff.club name lookups"). A domain's config entry may say welcome: false; paff.club does, since a node claims its own name and there's nobody to greet Co-Authored-By: Claude Opus 5.5 --- names/server.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'names/server.js') diff --git a/names/server.js b/names/server.js index 4d497c5..907efb1 100644 --- a/names/server.js +++ b/names/server.js @@ -40,7 +40,7 @@ import { accountOf, accountBlockers, forgetAccount } from './forget.js'; const CFG = JSON.parse(readFileSync(process.env.NAMES_CONFIG || join(import.meta.dir, 'config.json'), 'utf8')); -// { port, domains: { '': { zoneId } }, domain (default), cfEmail, cfKey, +// { port, domains: { '': { zoneId, welcome? } }, domain (default), cfEmail, cfKey, // dbFile (SQLite state), stateFile (the old JSON state, imported once), // ln: { kind:'socket', path } — the ASP's CLN, for per-name bolt12 offers, // forwarder: { mnemonic, ark, esplora, network } — a small float ark wallet @@ -2199,7 +2199,9 @@ Bun.serve({ }; persist(); log(`${existing ? 'updated' : 'registered'} ${key} for ${auth.pubkey.slice(0, 12)}`); - if (!existing) sendWelcome(state.names[key].pubkey, [state.names[key].manager]).catch(() => {}); + // a domain can opt out of the coinos welcome DM (paff.club: a PAFF node + // claims its name itself, nobody to greet) + if (!existing && DOMAINS[domain].welcome !== false) sendWelcome(state.names[key].pubkey, [state.names[key].manager]).catch(() => {}); return json({ ok: true, name, address: key, record: recordName(name, domain) }); } -- cgit v1.2.3