mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
reorganize constants
This commit is contained in:
parent
fed72a7aa3
commit
c01487347d
2 changed files with 25 additions and 74 deletions
25
src/irc/constants.go
Normal file
25
src/irc/constants.go
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// http://tools.ietf.org/html/rfc2812
|
||||
package irc
|
||||
|
||||
const (
|
||||
VERSION = "goircd-1"
|
||||
)
|
||||
|
||||
const (
|
||||
RPL_WELCOME = "001"
|
||||
RPL_YOURHOST = "002"
|
||||
RPL_CREATED = "003"
|
||||
RPL_MYINFO = "004"
|
||||
RPL_NONE = "300"
|
||||
)
|
||||
|
||||
const (
|
||||
ERR_NOSUCHNICK = "401"
|
||||
ERR_NOSUCHSERVER = "402"
|
||||
ERR_NOSUCHCHANNEL = "403"
|
||||
ERR_UNKNOWNCOMMAND = "421"
|
||||
ERR_NICKNAMEINUSE = "433"
|
||||
ERR_NEEDMOREPARAMS = "461"
|
||||
ERR_ALREADYREGISTRED = "462"
|
||||
ERR_USERSDONTMATCH = "502"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue