lib/irc: add CapRegistry
This commit is contained in:
parent
f6895fed32
commit
4cabae89ff
5 changed files with 90 additions and 59 deletions
4
state.js
4
state.js
|
@ -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] });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue