Better handle registration errors
This commit is contained in:
parent
b23f55a840
commit
516de5b3ea
2 changed files with 25 additions and 5 deletions
10
lib/irc.js
10
lib/irc.js
|
@ -1,3 +1,4 @@
|
|||
// RFC 1459
|
||||
export const RPL_WELCOME = "001";
|
||||
export const RPL_YOURHOST = "002";
|
||||
export const RPL_CREATED = "003";
|
||||
|
@ -9,8 +10,15 @@ export const RPL_WHOREPLY = "352";
|
|||
export const RPL_NAMREPLY = "353";
|
||||
export const RPL_ENDOFNAMES = "366";
|
||||
export const ERR_NOMOTD = "422";
|
||||
export const ERR_ERRONEUSNICKNAME = "432";
|
||||
export const ERR_NICKNAMEINUSE = "433";
|
||||
export const ERR_NICKCOLLISION = "436";
|
||||
export const ERR_NOPERMFORHOST = "463";
|
||||
export const ERR_PASSWDMISMATCH = "464";
|
||||
// https://ircv3.net/specs/extensions/sasl-3.1
|
||||
export const ERR_YOUREBANNEDCREEP = "465";
|
||||
// RFC 2812
|
||||
export const ERR_UNAVAILRESOURCE = "437";
|
||||
// IRCv3 SASL: https://ircv3.net/specs/extensions/sasl-3.1
|
||||
export const RPL_LOGGEDIN = "900";
|
||||
export const RPL_LOGGEDOUT = "901";
|
||||
export const ERR_NICKLOCKED = "902";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue