lib/irc: add CapRegistry

This commit is contained in:
Simon Ser 2021-12-10 15:34:51 +01:00
parent f6895fed32
commit 4cabae89ff
5 changed files with 90 additions and 59 deletions

View file

@ -360,8 +360,8 @@ export const State = {
case "CAP":
return updateServer({
supportsSASLPlain: client.supportsSASL("PLAIN"),
supportsAccountRegistration: !!client.enabledCaps["draft/account-registration"],
isBouncer: !!client.enabledCaps["soju.im/bouncer-networks"],
supportsAccountRegistration: client.caps.enabled.has("draft/account-registration"),
isBouncer: client.caps.enabled.has("soju.im/bouncer-networks"),
});
case irc.RPL_LOGGEDIN:
return updateServer({ account: msg.params[2] });