3 Commits

Author SHA1 Message Date
Will Storey
b5ef6cc54d v1.13.0 2019-07-08 18:37:41 -07:00
Will Storey
fe77d1c963 Include Go version in version string 2019-07-08 18:37:10 -07:00
Will Storey
a5eeda0549 Update .gitignore 2019-07-06 13:03:11 -07:00
6 changed files with 16 additions and 8 deletions

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
catbox
*.swp
/catbox
/test-net

View File

@@ -1,3 +1,8 @@
# 1.13.0 (2019-07-08)
* Include Go version in version string.
# 1.12.0 (2019-07-06)
* Update dependencies.

View File

@@ -379,7 +379,8 @@ func (c *LocalClient) registerUser() {
lu.messageFromServer("002", []string{
fmt.Sprintf("Your host is %s, running version %s",
lu.Catbox.Config.ServerName,
Version),
lu.Catbox.version(),
),
})
// 003 RPL_CREATED
@@ -392,7 +393,7 @@ func (c *LocalClient) registerUser() {
lu.messageFromServer("004", []string{
// It seems ambiguous if these are to be separate parameters.
lu.Catbox.Config.ServerName,
Version,
lu.Catbox.version(),
// User modes we support.
"ioC",
// Channel modes we support.

View File

@@ -2094,8 +2094,6 @@ func (u *LocalUser) versionCommand(m irc.Message) {
// Comments are free form. But I use similar to what ratbox does. See its doc
// server-version-info.
version := fmt.Sprintf("%s.", Version)
// H HUB, M IDLE_FROM_MSG, TS supports TS, 6 TS6, o TS only
comments := fmt.Sprintf("HM TS6o %s", string(u.Catbox.Config.TS6SID))
@@ -2104,7 +2102,7 @@ func (u *LocalUser) versionCommand(m irc.Message) {
Command: "351",
Params: []string{
u.User.DisplayNick,
version,
u.Catbox.version(),
u.Catbox.Config.ServerName,
comments,
},

View File

@@ -9,6 +9,7 @@ import (
"os"
"os/signal"
"path/filepath"
"runtime"
"strings"
"sync"
"syscall"
@@ -1705,3 +1706,5 @@ func sendMessages(messages []Message) {
m.Target.maybeQueueMessage(m.Message)
}
}
func (cb *Catbox) version() string { return Version + "-" + runtime.Version() }

View File

@@ -2,7 +2,7 @@ package main
// CreatedDate is the date we're built. This would be nice to generate
// dynamically, but I don't want to complicate the build.
const CreatedDate = "2019-07-06"
const CreatedDate = "2019-07-08"
// Version is our version.
const Version = "catbox-1.12.0"
const Version = "catbox-1.13.0"