reorganize constants

This commit is contained in:
Jeremy Latt 2012-04-17 18:49:14 -07:00
parent fed72a7aa3
commit c01487347d
2 changed files with 25 additions and 74 deletions

25
src/irc/constants.go Normal file
View 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"
)