yak-0.2.0.0: A strongly typed IRC library

Safe HaskellNone
LanguageHaskell2010

Network.Yak.Capabilities

Contents

Description

Synopsis

Documentation

Invalid Capabilities

type ErrInvalidcap = Msg "410" [Identifier, Text, Message] Source #

410 * <command> :Invalid CAP command

Capability Messages

LS

type CapLs = Msg "CAP LS" '[Flag "302"] Source #

The LS subcommand is used to list the capabilities supported by the server. The client should send an LS subcommand with no other arguments to solicit a list of all capabilities.

Since v3.2, LS can be invoked with a 302 flag.

type SrvCapLs = Msg "CAP" '[Identifier, Subcommand "LS", Flag "*", CList Capability] Source #

All but the last line in multi-line responses must have the * enabled.

LIST

type CapList = Msg "CAP LIST" '[] Source #

The LIST subcommand is used to list the capabilities associated with the active connection. The client should send a LIST subcommand with no other arguments to solicit a list of active capabilities. If no capabilities are active, an empty parameter must be sent.

type SrvCapList = Msg "CAP" '[Identifier, Subcommand "LIST", Flag "*", CList Capability] Source #

All but the last line in multi-line responses must have the * enabled.

REQ

type CapReq = Msg "CAP REQ" '[CList Capability] Source #

The REQ subcommand is used to request a change in capabilities associated with the active connection. It’s sole parameter must be a list of space-separated capability identifiers. Each capability identifier may be prefixed with a dash (-) to designate that the capability should be disabled.

type CapAck = Msg "CAP ACK" '[CList Capability] Source #

Client side ACK.

type CapEnd = Msg "CAP END" '[] Source #

The END subcommand signals to the server that capability negotiation is complete and requests that the server continue with client registration.

NEW/DEL