From 0531c404818a3e6931412592ec41e67172b2fb57 Mon Sep 17 00:00:00 2001 From: Jeremy Latt Date: Tue, 25 Feb 2014 09:42:50 -0800 Subject: [PATCH] simplify semantic version constant --- irc/constants.go | 6 +++--- irc/reply.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/irc/constants.go b/irc/constants.go index 74b43611..a831c6d2 100644 --- a/irc/constants.go +++ b/irc/constants.go @@ -23,9 +23,9 @@ var ( ) const ( - SERVER_VERSION = "1.1.0" - CRLF = "\r\n" - MAX_REPLY_LEN = 512 - len(CRLF) + SEMVER = "ergonomadic-1.1.0" + CRLF = "\r\n" + MAX_REPLY_LEN = 512 - len(CRLF) LOGIN_TIMEOUT = time.Minute / 2 // how long the client has to login IDLE_TIMEOUT = time.Minute // how long before a client is considered idle diff --git a/irc/reply.go b/irc/reply.go index 50034214..404a3471 100644 --- a/irc/reply.go +++ b/irc/reply.go @@ -151,7 +151,7 @@ func (target *Client) RplWelcome() { func (target *Client) RplYourHost() { 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() { @@ -161,7 +161,7 @@ func (target *Client) RplCreated() { func (target *Client) RplMyInfo() { 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) { @@ -371,7 +371,7 @@ func (target *Client) RplWhoisChannels(client *Client) { func (target *Client) RplVersion() { 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) {