refactor: extend shared account status snapshot helpers

This commit is contained in:
Peter Steinberger
2026-03-22 20:50:22 +00:00
parent 00b2f10dec
commit 87722d6327
15 changed files with 292 additions and 199 deletions

View File

@@ -308,14 +308,17 @@ export const ircPlugin: ChannelPlugin<ResolvedIrcAccount, IrcProbe> = {
}),
probeAccount: async ({ cfg, account, timeoutMs }) =>
probeIrc(cfg as CoreConfig, { accountId: account.accountId, timeoutMs }),
buildAccountSnapshot: ({ account, runtime, probe }) => ({
...buildBaseAccountStatusSnapshot({ account, runtime, probe }),
host: account.host,
port: account.port,
tls: account.tls,
nick: account.nick,
passwordSource: account.passwordSource,
}),
buildAccountSnapshot: ({ account, runtime, probe }) =>
buildBaseAccountStatusSnapshot(
{ account, runtime, probe },
{
host: account.host,
port: account.port,
tls: account.tls,
nick: account.nick,
passwordSource: account.passwordSource,
},
),
},
gateway: {
startAccount: async (ctx) => {