Safe Haskell | None |
---|---|
Language | Haskell2010 |
All response codes as types, as defined by the current Ircv3 spec
https://modern.ircdocs.horse/. Please note that the argument parsing
in many of these is crude and the text is parsed only as a catch-all
Message
type, since there may be difference between implementations on the
server side, or even per network! In some places, responses have been
hard-coded as defined in the Irc in order to extract necessary information.
If you disagree with these choices, pull requests are welcome.
Also note that you probably want to import this module qualified, or import just what you need, as it exports 93 type synonyms and many more lenses.
In case your use case allows more precise parsing, or you need server specific response codes not listed, you can always hide the relevant types and define your own by simply building the appropriate type synonym.
- *NOTE:** Because of size and a lack of test cases, this module is largely untested. Here be dragons!
Synopsis
- type Client = Username
- type RplWelcome = Msg "001" '[Client, Message]
- rplWelcomeMessage :: Lens' RplWelcome Message
- rplWelcomeClient :: Lens' RplWelcome Client
- type RplYourhost = Msg "002" '[Client, Message]
- rplYourhostMessage :: Lens' RplYourhost Message
- rplYourhostClient :: Lens' RplYourhost Client
- type RplCreated = Msg "003" '[Client, Message]
- rplCreatedMessage :: Lens' RplCreated Message
- rplCreatedClient :: Lens' RplCreated Client
- type RplMyinfo = Msg "004" '[Client, Hostname, Text, Modes, Modes, Maybe Modes]
- rplMyinfoCmodesParam :: Lens' RplMyinfo (Maybe Modes)
- rplMyinfoCmodes :: Lens' RplMyinfo Modes
- rplMyinfoUmodes :: Lens' RplMyinfo Modes
- rplMyinfoVersion :: Lens' RplMyinfo Text
- rplMyinfoServer :: Lens' RplMyinfo Hostname
- rplMyinfoClient :: Lens' RplMyinfo Client
- type RplIsupport = Msg "005" '[Client, SList Token, Message]
- rplIsupportMessage :: Lens' RplIsupport Message
- rplIsupportTokens :: Lens' RplIsupport (SList Token)
- rplIsupportClient :: Lens' RplIsupport Client
- type RplBounce = Msg "010" '[Client, Hostname, Int, Message]
- rplBounceMessage :: Lens' RplBounce Message
- rplBouncePort :: Lens' RplBounce Int
- rplBounceHostname :: Lens' RplBounce Hostname
- rplBounceClient :: Lens' RplBounce Client
- type RplUmodeis = Msg "221" '[Client, Modes]
- rplUmodeisUmodes :: Lens' RplUmodeis Modes
- rplUmodeisClient :: Lens' RplUmodeis Client
- type RplLuserclient = Msg "251" '[Client, Message]
- rplLuserclientMessage :: Lens' RplLuserclient Message
- rplLuserclientClient :: Lens' RplLuserclient Client
- type RplLuserop = Msg "252" '[Client, Int, Message]
- rplLuseropMessage :: Lens' RplLuserop Message
- rplLuseropOps :: Lens' RplLuserop Int
- rplLuseropClient :: Lens' RplLuserop Client
- type RplLuserunknown = Msg "253" '[Client, Int, Message]
- rplLuserunknownMessage :: Lens' RplLuserunknown Message
- rplLuserunknownConnections :: Lens' RplLuserunknown Int
- rplLuserunknownClient :: Lens' RplLuserunknown Client
- type RplLuserchannels = Msg "254" '[Client, Int, Message]
- rplLuserchannelsMessage :: Lens' RplLuserchannels Message
- rplLuserchannelsChannels :: Lens' RplLuserchannels Int
- rplLuserchannelsClient :: Lens' RplLuserchannels Client
- type RplLuserme = Msg "255" '[Client, Message]
- rplLusermeMessage :: Lens' RplLuserme Message
- rplLusermeClient :: Lens' RplLuserme Client
- type RplAdminme = Msg "256" '[Client, Maybe Hostname, Message]
- rplAdminmeMessage :: Lens' RplAdminme Message
- rplAdminmeServer :: Lens' RplAdminme (Maybe Hostname)
- rplAdminmeClient :: Lens' RplAdminme Client
- type RplAdminemail = Msg "259" '[Client, Message]
- rplAdminemailMessage :: Lens' RplAdminemail Message
- rplAdminemailClient :: Lens' RplAdminemail Client
- type RplTryagain = Msg "263" '[Client, Text, Message]
- rplTryagainMessage :: Lens' RplTryagain Message
- rplTryagainCommand :: Lens' RplTryagain Text
- rplTryagainClient :: Lens' RplTryagain Client
- type RplLocalusers = Msg "265" '[Client, Maybe (Int, Int), Message]
- rplLocalusersMessage :: Lens' RplLocalusers Message
- rplLocalusersUsers :: Lens' RplLocalusers (Maybe (Int, Int))
- rplLocalusersClient :: Lens' RplLocalusers Client
- rplLocalusersCurrent :: Traversal' RplLocalusers Int
- rplLocalusersMaximum :: Traversal' RplLocalusers Int
- type RplGlobalusers = Msg "266" '[Client, Maybe (Int, Int), Message]
- rplGlobalusersMessage :: Lens' RplGlobalusers Message
- rplGlobalusersUsers :: Lens' RplGlobalusers (Maybe (Int, Int))
- rplGlobalusersClient :: Lens' RplGlobalusers Client
- rplGlobalusersCurrent :: Traversal' RplGlobalusers Int
- rplGlobalusersMaximum :: Traversal' RplGlobalusers Int
- type RplWhoiscertfp = Msg "276" '[Client, Nickname, Message]
- rplWhoiscertfpMessage :: Lens' RplWhoiscertfp Message
- rplWhoiscertfpNick :: Lens' RplWhoiscertfp Nickname
- rplWhoiscertfpClient :: Lens' RplWhoiscertfp Client
- type RplNone = Msg "300" '[Void]
- type RplAway = Msg "301" '[Client, Nickname, Message]
- rplAwayMessage :: Lens' RplAway Message
- rplAwayNick :: Lens' RplAway Nickname
- rplAwayClient :: Lens' RplAway Client
- type RplUserhost = Msg "302" '[Client, CList UReply]
- rplUserhostReplies :: Lens' RplUserhost (CList UReply)
- rplUserhostClient :: Lens' RplUserhost Client
- type RplIson = Msg "303" '[Client, CList Nickname]
- rplIsonNicks :: Lens' RplIson (CList Nickname)
- rplIsonClient :: Lens' RplIson Client
- type RplUnaway = Msg "305" '[Client, Message]
- rplUnawayMessage :: Lens' RplUnaway Message
- rplUnawayClient :: Lens' RplUnaway Client
- type RplNowaway = Msg "306" '[Client, Message]
- rplNowawayMessage :: Lens' RplNowaway Message
- rplNowawayClient :: Lens' RplNowaway Client
- type RplWhoisuser = Msg "311" '[Client, Nickname, Username, Hostname, Unused "*", Message]
- rplWhoisuserMessage :: Lens' RplWhoisuser Message
- rplWhoisuserUnused :: Lens' RplWhoisuser (Unused "*")
- rplWhoisuserHost :: Lens' RplWhoisuser Hostname
- rplWhoisuserUsername :: Lens' RplWhoisuser Username
- rplWhoisuserNick :: Lens' RplWhoisuser Nickname
- rplWhoisuserClient :: Lens' RplWhoisuser Client
- type RplWhoisserver = Msg "312" '[Client, Nickname, Hostname, Message]
- rplWhoisserverMessage :: Lens' RplWhoisserver Message
- rplWhoisserverServer :: Lens' RplWhoisserver Hostname
- rplWhoisserverNick :: Lens' RplWhoisserver Nickname
- rplWhoisserverClient :: Lens' RplWhoisserver Client
- type RplWhoisoperator = Msg "313" '[Client, Nickname, Message]
- rplWhoisoperatorMessage :: Lens' RplWhoisoperator Message
- rplWhoisoperatorNick :: Lens' RplWhoisoperator Nickname
- rplWhoisoperatorClient :: Lens' RplWhoisoperator Client
- type RplWhowasuser = Msg "314" '[Client, Nickname, Username, Hostname, Unused "*", Message]
- rplWhowasuserMessage :: Lens' RplWhowasuser Message
- rplWhowasuserUnused :: Lens' RplWhowasuser (Unused "*")
- rplWhowasuserHost :: Lens' RplWhowasuser Hostname
- rplWhowasuserUsername :: Lens' RplWhowasuser Username
- rplWhowasuserNick :: Lens' RplWhowasuser Nickname
- rplWhowasuserClient :: Lens' RplWhowasuser Client
- type RplWhoisidle = Msg "317" '[Client, Nickname, Int, Maybe POSIXTime, Message]
- rplWhoisidleMessage :: Lens' RplWhoisidle Message
- rplWhoisidleSignon :: Lens' RplWhoisidle (Maybe POSIXTime)
- rplWhoisidleSecs :: Lens' RplWhoisidle Int
- rplWhoisidleNick :: Lens' RplWhoisidle Nickname
- rplWhoisidleClient :: Lens' RplWhoisidle Client
- type RplEndofwhois = Msg "318" '[Client, Nickname, Message]
- rplEndofwhoisMessage :: Lens' RplEndofwhois Message
- rplEndofwhoisNick :: Lens' RplEndofwhois Nickname
- rplEndofwhoisClient :: Lens' RplEndofwhois Client
- type RplWhoischannels = Msg "319" '[Client, Nickname, CList (Member Channel)]
- rplWhoischannelsChannels :: Lens' RplWhoischannels (CList (Member Channel))
- rplWhoischannelsNick :: Lens' RplWhoischannels Nickname
- rplWhoischannelsClient :: Lens' RplWhoischannels Client
- type RplListstart = Msg "321" '[Client]
- rplListstartClient :: Lens' RplListstart Client
- type RplList = Msg "322" '[Client, Channel, Int, Message]
- rplListMessage :: Lens' RplList Message
- rplListVisibleClients :: Lens' RplList Int
- rplListChannel :: Lens' RplList Channel
- rplListClient :: Lens' RplList Client
- type RplListend = Msg "323" '[Client, Message]
- rplListendMessage :: Lens' RplListend Message
- rplListendClient :: Lens' RplListend Client
- type RplChannelmodeis = Msg "324" '[Client, Channel, ByteString]
- rplChannelmodeisRawmode :: Lens' RplChannelmodeis ByteString
- rplChannelmodeisChannel :: Lens' RplChannelmodeis Channel
- rplChannelmodeisClient :: Lens' RplChannelmodeis Client
- rplChannelmodeisMode :: ServerModes -> Fold RplChannelmodeis ModeStr
- type RplNotopic = Msg "331" '[Client, Channel, Message]
- rplNotopicMessage :: Lens' RplNotopic Message
- rplNotopicChannel :: Lens' RplNotopic Channel
- rplNotopicClient :: Lens' RplNotopic Client
- type RplTopic = Msg "332" '[Client, Channel, Message]
- rplTopicMessage :: Lens' RplTopic Message
- rplTopicChannel :: Lens' RplTopic Channel
- rplTopicClient :: Lens' RplTopic Client
- type RplTopictime = Msg "333" '[Client, Channel, Nickname, POSIXTime]
- rplTopictimeSetAt :: Lens' RplTopictime POSIXTime
- rplTopictimeNick :: Lens' RplTopictime Nickname
- rplTopictimeChannel :: Lens' RplTopictime Channel
- rplTopictimeClient :: Lens' RplTopictime Client
- type RplInviting = Msg "341" '[Client, Channel, Nickname]
- rplInvitingNick :: Lens' RplInviting Nickname
- rplInvitingChannel :: Lens' RplInviting Channel
- rplInvitingClient :: Lens' RplInviting Client
- type RplInvitelist = Msg "346" '[Client, Channel, Mask]
- rplInvitelistMask :: Lens' RplInvitelist Mask
- rplInvitelistChannel :: Lens' RplInvitelist Channel
- rplInvitelistClient :: Lens' RplInvitelist Client
- type RplEndofinvitelist = Msg "349" '[Client, Channel, Message]
- rplEndofinvitelistMessage :: Lens' RplEndofinvitelist Message
- rplEndofinvitelistChannel :: Lens' RplEndofinvitelist Channel
- rplEndofinvitelistClient :: Lens' RplEndofinvitelist Client
- type RplExceptlist = Msg "348" '[Client, Channel, Mask]
- rplExceptlistMask :: Lens' RplExceptlist Mask
- rplExceptlistChannel :: Lens' RplExceptlist Channel
- rplExceptlistClient :: Lens' RplExceptlist Client
- type RplEndofexceptlist = Msg "349" '[Client, Channel, Message]
- rplEndofexceptlistMessage :: Lens' RplEndofexceptlist Message
- rplEndofexceptlistChannel :: Lens' RplEndofexceptlist Channel
- rplEndofexceptlistClient :: Lens' RplEndofexceptlist Client
- type RplVersion = Msg "351" '[Client, Text, Hostname, Message]
- rplVersionMessage :: Lens' RplVersion Message
- rplVersionServer :: Lens' RplVersion Hostname
- rplVersionVersion :: Lens' RplVersion Text
- rplVersionClient :: Lens' RplVersion Client
- type RplNamreply = Msg "353" '[Client, Char, Channel, CList (Member Nickname)]
- rplNamreplyNicks :: Lens' RplNamreply (CList (Member Nickname))
- rplNamreplyChannel :: Lens' RplNamreply Channel
- rplNamreplySymbol :: Lens' RplNamreply Char
- rplNamreplyClient :: Lens' RplNamreply Client
- type RplEndofnames = Msg "366" '[Client, Channel, Message]
- rplEndofnamesMessage :: Lens' RplEndofnames Message
- rplEndofnamesChannel :: Lens' RplEndofnames Channel
- rplEndofnamesClient :: Lens' RplEndofnames Client
- type RplBanlist = Msg "367" '[Client, Channel, Mask]
- rplBanlistMask :: Lens' RplBanlist Mask
- rplBanlistChannel :: Lens' RplBanlist Channel
- rplBanlistClient :: Lens' RplBanlist Client
- type RplEndofbanlist = Msg "368" '[Client, Channel, Message]
- rplEndofbanlistMessage :: Lens' RplEndofbanlist Message
- rplEndofbanlistChannel :: Lens' RplEndofbanlist Channel
- rplEndofbanlistClient :: Lens' RplEndofbanlist Client
- type RplEndofwhowas = Msg "369" '[Client, Nickname, Message]
- rplEndofwhowasMessage :: Lens' RplEndofwhowas Message
- rplEndofwhowasNick :: Lens' RplEndofwhowas Nickname
- rplEndofwhowasClient :: Lens' RplEndofwhowas Client
- type RplMotdstart = Msg "375" '[Client, Unused ":-", Hostname]
- rplMotdstartServer :: Lens' RplMotdstart Hostname
- rplMotdstartUnused :: Lens' RplMotdstart (Unused ":-")
- rplMotdstartClient :: Lens' RplMotdstart Client
- type RplMotd = Msg "372" '[Client, Message]
- rplMotdMessage :: Lens' RplMotd Message
- rplMotdClient :: Lens' RplMotd Client
- type RplEndofmotd = Msg "376" '[Client, Message]
- rplEndofmotdMessage :: Lens' RplEndofmotd Message
- rplEndofmotdClient :: Lens' RplEndofmotd Client
- type RplYoureoper = Msg "381" '[Client, Message]
- rplYoureoperMessage :: Lens' RplYoureoper Message
- rplYoureoperClient :: Lens' RplYoureoper Client
- type RplRehashing = Msg "382" '[Client, Text, Message]
- rplRehashingMessage :: Lens' RplRehashing Message
- rplRehashingConfigFile :: Lens' RplRehashing Text
- rplRehashingClient :: Lens' RplRehashing Client
- type ErrUnknownerror = Msg "400" '[Client, SList Text, Message]
- errUnknownerrorMessage :: Lens' ErrUnknownerror Message
- errUnknownerrorCommands :: Lens' ErrUnknownerror (SList Text)
- errUnknownerrorClient :: Lens' ErrUnknownerror Client
- type ErrNosuchnick = Msg "401" '[Client, Nickname, Message]
- errNosuchnickMessage :: Lens' ErrNosuchnick Message
- errNosuchnickNickname :: Lens' ErrNosuchnick Nickname
- errNosuchnickClient :: Lens' ErrNosuchnick Client
- type ErrNosuchserver = Msg "402" '[Client, Hostname, Message]
- errNosuchserverMessage :: Lens' ErrNosuchserver Message
- errNosuchserverServer :: Lens' ErrNosuchserver Hostname
- errNosuchserverClient :: Lens' ErrNosuchserver Client
- type ErrNosuchchannel = Msg "403" '[Client, Channel, Message]
- errNosuchchannelMessage :: Lens' ErrNosuchchannel Message
- errNosuchchannelChannel :: Lens' ErrNosuchchannel Channel
- errNosuchchannelClient :: Lens' ErrNosuchchannel Client
- type ErrCannotsendtochan = Msg "404" '[Client, Channel, Message]
- errCannotsendtochanMessage :: Lens' ErrCannotsendtochan Message
- errCannotsendtochanChannel :: Lens' ErrCannotsendtochan Channel
- errCannotsendtochanClient :: Lens' ErrCannotsendtochan Client
- type ErrToomanychannels = Msg "405" '[Client, Channel, Message]
- errToomanychannelsMessage :: Lens' ErrToomanychannels Message
- errToomanychannelsChannel :: Lens' ErrToomanychannels Channel
- errToomanychannelsClient :: Lens' ErrToomanychannels Client
- type ErrUnknowncommand = Msg "421" '[Client, Text, Message]
- errUnknowncommandMessage :: Lens' ErrUnknowncommand Message
- errUnknowncommandCommand :: Lens' ErrUnknowncommand Text
- errUnknowncommandClient :: Lens' ErrUnknowncommand Client
- type ErrNomotd = Msg "422" '[Client, Message]
- errNomotdMessage :: Lens' ErrNomotd Message
- errNomotdClient :: Lens' ErrNomotd Client
- type ErrErroneusnickname = Msg "432" '[Client, Nickname, Message]
- errErroneusnicknameMessage :: Lens' ErrErroneusnickname Message
- errErroneusnicknameNick :: Lens' ErrErroneusnickname Nickname
- errErroneusnicknameClient :: Lens' ErrErroneusnickname Client
- type ErrNicknameinuse = Msg "433" '[Client, Nickname, Message]
- errNicknameinuseMessage :: Lens' ErrNicknameinuse Message
- errNicknameinuseNick :: Lens' ErrNicknameinuse Nickname
- errNicknameinuseClient :: Lens' ErrNicknameinuse Client
- type ErrNotregistered = Msg "451" '[Client, Message]
- errNotregisteredMessage :: Lens' ErrNotregistered Message
- errNotregisteredClient :: Lens' ErrNotregistered Client
- type ErrNeedmoreparams = Msg "461" '[Client, Text, Message]
- errNeedmoreparamsMessage :: Lens' ErrNeedmoreparams Message
- errNeedmoreparamsCommand :: Lens' ErrNeedmoreparams Text
- errNeedmoreparamsClient :: Lens' ErrNeedmoreparams Client
- type ErrAlreadyregistered = Msg "462" '[Client, Message]
- errAlreadyregisteredMessage :: Lens' ErrAlreadyregistered Message
- errAlreadyregisteredClient :: Lens' ErrAlreadyregistered Client
- type ErrPasswdmismatch = Msg "464" '[Client, Message]
- errPasswdmismatchMessage :: Lens' ErrPasswdmismatch Message
- errPasswdmismatchClient :: Lens' ErrPasswdmismatch Client
- type ErrYourebannedcreep = Msg "465" '[Client, Message]
- errYourebannedcreepMessage :: Lens' ErrYourebannedcreep Message
- errYourebannedcreepClient :: Lens' ErrYourebannedcreep Client
- type ErrChannelisfull = Msg "471" '[Client, Channel, Message]
- errChannelisfullMessage :: Lens' ErrChannelisfull Message
- errChannelisfullChannel :: Lens' ErrChannelisfull Channel
- errChannelisfullClient :: Lens' ErrChannelisfull Client
- type ErrUnknownmode = Msg "472" '[Client, Char, Message]
- errUnknownmodeMessage :: Lens' ErrUnknownmode Message
- errUnknownmodeModeChar :: Lens' ErrUnknownmode Char
- errUnknownmodeClient :: Lens' ErrUnknownmode Client
- type ErrInviteonlychan = Msg "473" '[Client, Channel, Message]
- errInviteonlychanMessage :: Lens' ErrInviteonlychan Message
- errInviteonlychanChannel :: Lens' ErrInviteonlychan Channel
- errInviteonlychanClient :: Lens' ErrInviteonlychan Client
- type ErrBannedfromchan = Msg "474" '[Client, Channel, Message]
- errBannedfromchanMessage :: Lens' ErrBannedfromchan Message
- errBannedfromchanChannel :: Lens' ErrBannedfromchan Channel
- errBannedfromchanClient :: Lens' ErrBannedfromchan Client
- type ErrBadchannelkey = Msg "475" '[Client, Channel, Message]
- errBadchannelkeyMessage :: Lens' ErrBadchannelkey Message
- errBadchannelkeyChannel :: Lens' ErrBadchannelkey Channel
- errBadchannelkeyClient :: Lens' ErrBadchannelkey Client
- type ErrNoprivileges = Msg "481" '[Client, Message]
- errNoprivilegesMessage :: Lens' ErrNoprivileges Message
- errNoprivilegesClient :: Lens' ErrNoprivileges Client
- type ErrChanoprivsneeded = Msg "482" '[Client, Channel, Message]
- errChanoprivsneededMessage :: Lens' ErrChanoprivsneeded Message
- errChanoprivsneededChannel :: Lens' ErrChanoprivsneeded Channel
- errChanoprivsneededClient :: Lens' ErrChanoprivsneeded Client
- type ErrCantkillserver = Msg "483" '[Client, Message]
- errCantkillserverMessage :: Lens' ErrCantkillserver Message
- errCantkillserverClient :: Lens' ErrCantkillserver Client
- type ErrNooperhost = Msg "491" '[Client, Message]
- errNooperhostMessage :: Lens' ErrNooperhost Message
- errNooperhostClient :: Lens' ErrNooperhost Client
- type ErrUmodeunknownflag = Msg "501" '[Client, Message]
- errUmodeunknownflagMessage :: Lens' ErrUmodeunknownflag Message
- errUmodeunknownflagClient :: Lens' ErrUmodeunknownflag Client
- type ErrUsersdontmatch = Msg "502" '[Client, Message]
- errUsersdontmatchMessage :: Lens' ErrUsersdontmatch Message
- errUsersdontmatchClient :: Lens' ErrUsersdontmatch Client
- type RplStarttls = Msg "670" '[Client, Message]
- rplStarttlsMessage :: Lens' RplStarttls Message
- rplStarttlsClient :: Lens' RplStarttls Client
- type ErrStarttls = Msg "691" '[Client, Message]
- errStarttlsMessage :: Lens' ErrStarttls Message
- errStarttlsClient :: Lens' ErrStarttls Client
- type ErrNoprivs = Msg "723" '[Client, Text, Message]
- errNoprivsMessage :: Lens' ErrNoprivs Message
- errNoprivsPriv :: Lens' ErrNoprivs Text
- errNoprivsClient :: Lens' ErrNoprivs Client
- type RplLoggedin = Msg "900" '[Client, Host, Text, Message]
- rplLoggedinMessage :: Lens' RplLoggedin Message
- rplLoggedinAccount :: Lens' RplLoggedin Text
- rplLoggedinHost :: Lens' RplLoggedin Host
- rplLoggedinClient :: Lens' RplLoggedin Client
- type RplLoggedout = Msg "901" '[Client, Host, Message]
- rplLoggedoutMessage :: Lens' RplLoggedout Message
- rplLoggedoutHost :: Lens' RplLoggedout Host
- rplLoggedoutClient :: Lens' RplLoggedout Client
- type ErrNicklocked = Msg "902" '[Client, Message]
- errNicklockedMessage :: Lens' ErrNicklocked Message
- errNicklockedClient :: Lens' ErrNicklocked Client
- type RplSaslsuccess = Msg "903" '[Client, Message]
- rplSaslsuccessMessage :: Lens' RplSaslsuccess Message
- rplSaslsuccessClient :: Lens' RplSaslsuccess Client
- type ErrSaslfail = Msg "904" '[Client, Message]
- errSaslfailMessage :: Lens' ErrSaslfail Message
- errSaslfailClient :: Lens' ErrSaslfail Client
- type ErrSasltoolong = Msg "905" '[Client, Message]
- errSasltoolongMessage :: Lens' ErrSasltoolong Message
- errSasltoolongClient :: Lens' ErrSasltoolong Client
- type ErrSaslaborted = Msg "906" '[Client, Message]
- errSaslabortedMessage :: Lens' ErrSaslaborted Message
- errSaslabortedClient :: Lens' ErrSaslaborted Client
- type ErrSaslalready = Msg "907" '[Client, Message]
- errSaslalreadyMessage :: Lens' ErrSaslalready Message
- errSaslalreadyClient :: Lens' ErrSaslalready Client
- type RplSaslmechs = Msg "908" '[Client, [Text], Message]
- rplSaslmechsMessage :: Lens' RplSaslmechs Message
- rplSaslmechsMechanisms :: Lens' RplSaslmechs [Text]
- rplSaslmechsClient :: Lens' RplSaslmechs Client
Documentation
type RplWelcome = Msg "001" '[Client, Message] Source #
"<client> :Welcome to the <networkname> Network, <nick>[!<user>@<host>]"
type RplYourhost = Msg "002" '[Client, Message] Source #
"<client> :Your host is <servername>, running version <version>"
type RplCreated = Msg "003" '[Client, Message] Source #
"<client> :This server was created <datetime>"
type RplMyinfo = Msg "004" '[Client, Hostname, Text, Modes, Modes, Maybe Modes] Source #
"<client> <servername> <version> <available user modes> <available channel modes> [<channel modes with a parameter>]"
type RplIsupport = Msg "005" '[Client, SList Token, Message] Source #
"<client> <1-13 tokens> :are supported by this server"
type RplBounce = Msg "010" '[Client, Hostname, Int, Message] Source #
"<client> <hostname> <port> :<info>"
type RplLuserclient = Msg "251" '[Client, Message] Source #
"<client> :There are <u> users and <i> invisible on <s> servers"
type RplLuserunknown = Msg "253" '[Client, Int, Message] Source #
"<client> <connections> :unknown connection(s)"
type RplLuserchannels = Msg "254" '[Client, Int, Message] Source #
"<client> <channels> :channels formed"
type RplLuserme = Msg "255" '[Client, Message] Source #
"<client> :I have <c> clients and <s> servers"
type RplAdminme = Msg "256" '[Client, Maybe Hostname, Message] Source #
"<client> [<server>] :Administrative info"
type RplTryagain = Msg "263" '[Client, Text, Message] Source #
"<client> <command> :Please wait a while and try again."
type RplLocalusers = Msg "265" '[Client, Maybe (Int, Int), Message] Source #
"<client> [<u> <m>] :Current local users <u>, max <m>"
rplLocalusersUsers :: Lens' RplLocalusers (Maybe (Int, Int)) Source #
type RplGlobalusers = Msg "266" '[Client, Maybe (Int, Int), Message] Source #
"<client> [<u> <m>] :Current global users <u>, max <m>"
rplGlobalusersUsers :: Lens' RplGlobalusers (Maybe (Int, Int)) Source #
type RplWhoiscertfp = Msg "276" '[Client, Nickname, Message] Source #
"<client> <nick> :has client certificate fingerprint <fingerprint>"
type RplUnaway = Msg "305" '[Client, Message] Source #
"<client> :You are no longer marked as being away"
type RplNowaway = Msg "306" '[Client, Message] Source #
"<client> :You have been marked as being away"
type RplWhoisuser = Msg "311" '[Client, Nickname, Username, Hostname, Unused "*", Message] Source #
"<client> <nick> <username> <host> * :<realname>"
rplWhoisuserUnused :: Lens' RplWhoisuser (Unused "*") Source #
type RplWhoisserver = Msg "312" '[Client, Nickname, Hostname, Message] Source #
"<client> <nick> <server> :<server info>"
type RplWhoisoperator = Msg "313" '[Client, Nickname, Message] Source #
"<client> <nick> :is an Irc operator"
type RplWhowasuser = Msg "314" '[Client, Nickname, Username, Hostname, Unused "*", Message] Source #
"<client> <nick> <username> <host> * :<realname>"
rplWhowasuserUnused :: Lens' RplWhowasuser (Unused "*") Source #
type RplWhoisidle = Msg "317" '[Client, Nickname, Int, Maybe POSIXTime, Message] Source #
"<client> <nick> <secs> [<signon>] :seconds idle, signon time"
type RplEndofwhois = Msg "318" '[Client, Nickname, Message] Source #
"<client> <nick> :End of /Whois list"
type RplWhoischannels = Msg "319" '[Client, Nickname, CList (Member Channel)] Source #
"<client> <nick> :[prefix]<channel>{ [prefix]<channel>}"
type RplListstart = Msg "321" '[Client] Source #
"<client> Channel :Users Name"
type RplList = Msg "322" '[Client, Channel, Int, Message] Source #
"<client> <channel> <visible clients> :<topic>"
type RplChannelmodeis = Msg "324" '[Client, Channel, ByteString] Source #
"<client> <channel> <modestring> <mode arguments>..."
type RplNotopic = Msg "331" '[Client, Channel, Message] Source #
"<client> <channel> :No topic is set"
type RplTopictime = Msg "333" '[Client, Channel, Nickname, POSIXTime] Source #
"<client> <channel> <nick> <setat>"
type RplEndofinvitelist = Msg "349" '[Client, Channel, Message] Source #
"<client> <channel> :End of channel invite list"
type RplEndofexceptlist = Msg "349" '[Client, Channel, Message] Source #
"<client> <channel> :End of channel exception list"
type RplVersion = Msg "351" '[Client, Text, Hostname, Message] Source #
"<client> <version> <server> :<comments>"
type RplNamreply = Msg "353" '[Client, Char, Channel, CList (Member Nickname)] Source #
"<client> <symbol> <channel> :[prefix]<nick>{ [prefix]<nick>}"
type RplEndofnames = Msg "366" '[Client, Channel, Message] Source #
"<client> <channel> :End of /Names list"
type RplEndofbanlist = Msg "368" '[Client, Channel, Message] Source #
"<client> <channel> :End of channel ban list"
type RplEndofwhowas = Msg "369" '[Client, Nickname, Message] Source #
"<client> <nick> :End of Whowas"
type RplMotdstart = Msg "375" '[Client, Unused ":-", Hostname] Source #
"<client> :- <server> Message of the day - "
rplMotdstartUnused :: Lens' RplMotdstart (Unused ":-") Source #
type ErrUnknownerror = Msg "400" '[Client, SList Text, Message] Source #
"<client> <command>{ <subcommand>} :<info>"
type ErrNosuchnick = Msg "401" '[Client, Nickname, Message] Source #
"<client> <nickname> :No such nick/channel"
type ErrNosuchserver = Msg "402" '[Client, Hostname, Message] Source #
"<client> <server name> :No such server"
type ErrNosuchchannel = Msg "403" '[Client, Channel, Message] Source #
"<client> <channel> :No such channel"
type ErrCannotsendtochan = Msg "404" '[Client, Channel, Message] Source #
"<client> <channel> :Cannot send to channel"
type ErrToomanychannels = Msg "405" '[Client, Channel, Message] Source #
"<client> <channel> :You have joined too many channels"
type ErrUnknowncommand = Msg "421" '[Client, Text, Message] Source #
"<client> <command> :Unknown command"
type ErrErroneusnickname = Msg "432" '[Client, Nickname, Message] Source #
"<client> <nick> :Erroneus nickname"
type ErrNicknameinuse = Msg "433" '[Client, Nickname, Message] Source #
"<client> <nick> :Nickname is already in use"
type ErrNeedmoreparams = Msg "461" '[Client, Text, Message] Source #
"<client> <command> :Not enough parameters"
type ErrYourebannedcreep = Msg "465" '[Client, Message] Source #
"<client> :You are banned from this server."
type ErrChannelisfull = Msg "471" '[Client, Channel, Message] Source #
"<client> <channel> :Cannot join channel (+l)"
type ErrUnknownmode = Msg "472" '[Client, Char, Message] Source #
"<client> <modechar> :is unknown mode char to me"
type ErrInviteonlychan = Msg "473" '[Client, Channel, Message] Source #
"<client> <channel> :Cannot join channel (+i)"
type ErrBannedfromchan = Msg "474" '[Client, Channel, Message] Source #
"<client> <channel> :Cannot join channel (+b)"
type ErrBadchannelkey = Msg "475" '[Client, Channel, Message] Source #
"<client> <channel> :Cannot join channel (+k)"
type ErrNoprivileges = Msg "481" '[Client, Message] Source #
"<client> :Permission Denied- You're not an Irc operator"
type ErrChanoprivsneeded = Msg "482" '[Client, Channel, Message] Source #
"<client> <channel> :You're not channel operator"
type ErrUsersdontmatch = Msg "502" '[Client, Message] Source #
"<client> :Cant change mode for other users"
type RplStarttls = Msg "670" '[Client, Message] Source #
"<client> :Starttls successful, proceed with Tls handshake"
type ErrStarttls = Msg "691" '[Client, Message] Source #
"<client> :Starttls failed (Wrong moon phase)"
type ErrNoprivs = Msg "723" '[Client, Text, Message] Source #
"<client> <priv> :Insufficient oper privileges."
type RplLoggedin = Msg "900" '[Client, Host, Text, Message] Source #
"<client> <nick>!<user>@<host> <account> :You are now logged in as <username>"
type RplLoggedout = Msg "901" '[Client, Host, Message] Source #
"<client> <nick>!<user>@<host> :You are now logged out"
type ErrNicklocked = Msg "902" '[Client, Message] Source #
"<client> :You must use a nick assigned to you"
type RplSaslsuccess = Msg "903" '[Client, Message] Source #
"<client> :Sasl authentication successful"
type ErrSaslalready = Msg "907" '[Client, Message] Source #
"<client> :You have already authenticated using Sasl"