1package irc
2
3// IRC replies.
4const (
5 rplWelcome = "001" // :Welcome message
6 rplYourhost = "002" // :Your host is...
7 rplCreated = "003" // :This server was created...
8 rplMyinfo = "004" // <servername> <version> <umodes> <chan modes> <chan modes with a parameter>
9 rplIsupport = "005" // 1*13<TOKEN[=value]> :are supported by this server
10
11 rplStatscommands = "212" // <command> <count> [<byte count> <remote count>]
12 rplEndofstats = "219" // <stats letter> :End of /STATS report
13 rplUmodeis = "221" // <modes>
14 rplStatsuptime = "242" // :Server Up <days> days <hours>:<minutes>:<seconds>
15 rplStatsconn = "250" // :Highest connection count: <connections> (<clients> clients) (<total> connections received)
16 rplLuserclient = "251" // :<int> users and <int> services on <int> servers
17 rplLuserop = "252" // <int> :operator(s) online
18 rplLuserunknown = "253" // <int> :unknown connection(s)
19 rplLuserchannels = "254" // <int> :channels formed
20 rplLuserme = "255" // :I have <int> clients and <int> servers
21 rplAdminme = "256" // <server> :Admin info
22 rplAdminloc1 = "257" // :<info>
23 rplAdminloc2 = "258" // :<info>
24 rplAdminemail = "259" // :<info>
25 rplLocalusers = "265" // [<u> <m>] :Current local users <u>, max <m>
26 rplGlobalusers = "266" // [<u> <m>] :Current global users <u>, max <m>
27 rplWhoiscertfp = "276" // <nick> :has client certificate fingerprint <fingerprint>
28
29 rplAway = "301" // <nick> :<away message>
30 rplUserhost = "302" // :[<reply>{ <reply>}]
31 rplUnaway = "305" // :You are no longer marked as being away
32 rplNowaway = "306" // :You have been marked as being away
33 rplWhoisregnick = "307" // <nick> :has identified for this nick
34 rplWhoisuser = "311" // <nick> <user> <host> * :<realname>
35 rplWhoisserver = "312" // <nick> <server> :<server info>
36 rplWhoisoperator = "313" // <nick> :is an IRC operator
37 rplWhowasuser = "314" // <nick> <username> <host> * :<realname>
38 rplEndofwho = "315" // <name> :End of WHO list
39 rplWhoisidle = "317" // <nick> <integer> [<integer>] :seconds idle [, signon time]
40 rplEndofwhois = "318" // <nick> :End of WHOIS list
41 rplWhoischannels = "319" // <nick> :*( (@/+) <channel> " " )
42 rplWhoisspecial = "320" // <nick> :blah blah blah
43 rplListstart = "321" // Channel :Users Name
44 rplList = "322" // <channel> <# of visible members> <topic>
45 rplListend = "323" // :End of list
46 rplChannelmodeis = "324" // <channel> <modes> <mode params>
47 rplCreationTime = "329" // <channel> <creationtime>
48 rplWhoisaccount = "330" // <nick> <account> :is logged in as
49 rplNotopic = "331" // <channel> :No topic set
50 rplTopic = "332" // <channel> <topic>
51 rplTopicwhotime = "333" // <channel> <nick> <setat>
52 rplInvitelist = "336" // <channel>
53 rplEndofinvitelist = "337" // <channel> :End of invite list
54 rplWhoisactually = "338" // <nick> [<username>@<hostname>] [<ip>] :Is actually using host
55 rplInviting = "341" // <nick> <channel>
56 rplInvexlist = "346" // <channel> <mask>
57 rplEndofinvexlist = "347" // <channel> :End of Channel Invite Exception List
58 rplExceptlist = "348" // <channel> <exception mask>
59 rplEndofexceptlist = "349" // <channel> :End of exception list
60 rplVersion = "351" // <version> <servername> :<comments>
61 rplWhoreply = "352" // <channel> <user> <host> <server> <nick> "H"/"G" ["*"] [("@"/"+")] :<hop count> <nick>
62 rplNamreply = "353" // <=/*/@> <channel> :1*(@/ /+user)
63 rplWhospecialreply = "354" // [token] [channel] [user] [ip] [host] [server] [nick] [flags] [hopcount] [idle] [account] [oplevel] [:realname]
64 rplLinks = "364" // * <server> :<hopcount> <server info>
65 rplEndoflinks = "365" // * :End of /LINKS list
66 rplEndofnames = "366" // <channel> :End of names list
67 rplBanlist = "367" // <channel> <ban mask>
68 rplEndofbanlist = "368" // <channel> :End of ban list
69 rplEndofwhowas = "369" // <nick> :End of WHOWAS
70 rplInfo = "371" // :<info>
71 rplMotd = "372" // :- <text>
72 rplEndofinfo = "374" // :End of INFO
73 rplMotdstart = "375" // :- <servername> Message of the day -
74 rplEndofmotd = "376" // :End of MOTD command
75 rplWhoishost = "378" // <nick> :is connecting from *@localhost 127.0.0.1
76 rplWhoismodes = "379" // <nick> :is using modes +ailosw
77 rplYoureoper = "381" // :You are now an operator
78 rplRehashing = "382" // <config file> :Rehashing
79 rplTime = "391" // <servername> :<time in whatever format>
80 rplHostHidden = "396"
81
82 errNosuchnick = "401" // <nick> :No such nick/channel
83 errNosuchchannel = "403" // <channel> :No such channel
84 errCannotsendtochan = "404" // <channel> :Cannot send to channel
85 errInvalidcapcmd = "410" // <command> :Unknown cap command
86 errNorecipient = "411" // :No recipient given
87 errNotexttosend = "412" // :No text to send
88 errInputtoolong = "417" // :Input line was too long
89 errUnknowncommand = "421" // <command> :Unknown command
90 errNomotd = "422" // :MOTD file missing
91 errNonicknamegiven = "431" // :No nickname given
92 errErroneusnickname = "432" // <nick> :Erroneous nickname
93 errNicknameinuse = "433" // <nick> :Nickname in use
94 errUsernotinchannel = "441" // <nick> <channel> :User not in channel
95 errNotonchannel = "442" // <channel> :You're not on that channel
96 errUseronchannel = "443" // <user> <channel> :is already on channel
97 errNotregistered = "451" // :You have not registered
98 errNeedmoreparams = "461" // <command> :Not enough parameters
99 errAlreadyregistred = "462" // :Already registered
100 errPasswdmismatch = "464" // :Password incorrect
101 errYourebannedcreep = "465" // :You're banned from this server
102 errKeyset = "467" // <channel> :Channel key already set
103 errChannelisfull = "471" // <channel> :Cannot join channel (+l)
104 errUnknownmode = "472" // <char> :Don't know this mode for <channel>
105 errInviteonlychan = "473" // <channel> :Cannot join channel (+I)
106 errBannedfromchan = "474" // <channel> :Cannot join channel (+b)
107 errBadchankey = "475" // <channel> :Cannot join channel (+k)
108 errNopriviledges = "481" // :Permission Denied - You're not an IRC operator
109 errChanoprivsneeded = "482" // <channel> :You're not an operator
110
111 errUmodeunknownflag = "501" // :Unknown mode flag
112 errUsersdontmatch = "502" // :Can't change mode for other users
113
114 rplWhoissecure = "671" // <nick> :is using a secure connection
115
116 rplHelpstart = "704" // <subject> :<first line of help section>
117 rplHelptxt = "705" // <subject> :<line of help text>
118 rplEndofhelp = "706" // <subject> :<last line of help text>
119
120 rplMononline = "730" // <nick> :target[!user@host][,target[!user@host]]*
121 rplMonoffline = "731" // <nick> :target[,target2]*
122 rplMonlist = "732" // <nick> :target[,target2]*
123 rplEndofmonlist = "733" // <nick> :End of MONITOR list
124 errMonlistisfull = "734" // <nick> <limit> <targets> :Monitor list is full.
125
126 rplWhoiskeyvalue = "760" // <Target> <Key> <Visibility> :<Value>
127 rplKeyvalue = "761" // <Target> <Key> <Visibility> :<Value>
128 rplKeynotset = "766" // <Target> <Key> :key not set
129 rplMetadatasubok = "770" // <Key1> [<Key2> ...]
130 rplMetadataunsubok = "771" // <Key1> [<Key2> ...]
131 rplMetadatasubs = "772" // <Key1> [<Key2> ...]
132 rplMetadatasynclater = "774" // <Target> [<RetryAfter>]
133
134 rplLoggedin = "900" // <nick> <nick>!<ident>@<host> <account> :You are now logged in as <user>
135 rplLoggedout = "901" // <nick> <nick>!<ident>@<host> :You are now logged out
136 errNicklocked = "902" // :You must use a nick assigned to you
137 rplSaslsuccess = "903" // :SASL authentication successful
138 errSaslfail = "904" // :SASL authentication failed
139 errSasltoolong = "905" // :SASL message too long
140 errSaslaborted = "906" // :SASL authentication aborted
141 errSaslalready = "907" // :You have already authenticated using SASL
142 rplSaslmechs = "908" // <mechanisms> :are available SASL mechanisms
143)