3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

simplify semantic version constant

This commit is contained in:
Jeremy Latt 2014-02-25 09:42:50 -08:00
parent 58f7d6dabf
commit 0531c40481
2 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ var (
) )
const ( const (
SERVER_VERSION = "1.1.0" SEMVER = "ergonomadic-1.1.0"
CRLF = "\r\n" CRLF = "\r\n"
MAX_REPLY_LEN = 512 - len(CRLF) MAX_REPLY_LEN = 512 - len(CRLF)

View File

@ -151,7 +151,7 @@ func (target *Client) RplWelcome() {
func (target *Client) RplYourHost() { func (target *Client) RplYourHost() {
target.NumericReply(RPL_YOURHOST, target.NumericReply(RPL_YOURHOST,
":Your host is %s, running version %s", target.server.name, SERVER_VERSION) ":Your host is %s, running version %s", target.server.name, SEMVER)
} }
func (target *Client) RplCreated() { func (target *Client) RplCreated() {
@ -161,7 +161,7 @@ func (target *Client) RplCreated() {
func (target *Client) RplMyInfo() { func (target *Client) RplMyInfo() {
target.NumericReply(RPL_MYINFO, target.NumericReply(RPL_MYINFO,
"%s %s aiOorsw abeIikmntpqrsl", target.server.name, SERVER_VERSION) "%s %s aiOorsw abeIikmntpqrsl", target.server.name, SEMVER)
} }
func (target *Client) RplUModeIs(client *Client) { func (target *Client) RplUModeIs(client *Client) {
@ -371,7 +371,7 @@ func (target *Client) RplWhoisChannels(client *Client) {
func (target *Client) RplVersion() { func (target *Client) RplVersion() {
target.NumericReply(RPL_VERSION, target.NumericReply(RPL_VERSION,
"ergonomadic-%s %s", SERVER_VERSION, target.server.name) "%s %s", SEMVER, target.server.name)
} }
func (target *Client) RplInviting(invitee *Client, channel string) { func (target *Client) RplInviting(invitee *Client, channel string) {