Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b5ef6cc54d | ||
![]() |
fe77d1c963 | ||
![]() |
a5eeda0549 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
catbox
|
|
||||||
*.swp
|
*.swp
|
||||||
|
/catbox
|
||||||
|
/test-net
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
# 1.13.0 (2019-07-08)
|
||||||
|
|
||||||
|
* Include Go version in version string.
|
||||||
|
|
||||||
|
|
||||||
# 1.12.0 (2019-07-06)
|
# 1.12.0 (2019-07-06)
|
||||||
|
|
||||||
* Update dependencies.
|
* Update dependencies.
|
||||||
|
@@ -379,7 +379,8 @@ func (c *LocalClient) registerUser() {
|
|||||||
lu.messageFromServer("002", []string{
|
lu.messageFromServer("002", []string{
|
||||||
fmt.Sprintf("Your host is %s, running version %s",
|
fmt.Sprintf("Your host is %s, running version %s",
|
||||||
lu.Catbox.Config.ServerName,
|
lu.Catbox.Config.ServerName,
|
||||||
Version),
|
lu.Catbox.version(),
|
||||||
|
),
|
||||||
})
|
})
|
||||||
|
|
||||||
// 003 RPL_CREATED
|
// 003 RPL_CREATED
|
||||||
@@ -392,7 +393,7 @@ func (c *LocalClient) registerUser() {
|
|||||||
lu.messageFromServer("004", []string{
|
lu.messageFromServer("004", []string{
|
||||||
// It seems ambiguous if these are to be separate parameters.
|
// It seems ambiguous if these are to be separate parameters.
|
||||||
lu.Catbox.Config.ServerName,
|
lu.Catbox.Config.ServerName,
|
||||||
Version,
|
lu.Catbox.version(),
|
||||||
// User modes we support.
|
// User modes we support.
|
||||||
"ioC",
|
"ioC",
|
||||||
// Channel modes we support.
|
// Channel modes we support.
|
||||||
|
@@ -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
|
// Comments are free form. But I use similar to what ratbox does. See its doc
|
||||||
// server-version-info.
|
// server-version-info.
|
||||||
|
|
||||||
version := fmt.Sprintf("%s.", Version)
|
|
||||||
|
|
||||||
// H HUB, M IDLE_FROM_MSG, TS supports TS, 6 TS6, o TS only
|
// 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))
|
comments := fmt.Sprintf("HM TS6o %s", string(u.Catbox.Config.TS6SID))
|
||||||
|
|
||||||
@@ -2104,7 +2102,7 @@ func (u *LocalUser) versionCommand(m irc.Message) {
|
|||||||
Command: "351",
|
Command: "351",
|
||||||
Params: []string{
|
Params: []string{
|
||||||
u.User.DisplayNick,
|
u.User.DisplayNick,
|
||||||
version,
|
u.Catbox.version(),
|
||||||
u.Catbox.Config.ServerName,
|
u.Catbox.Config.ServerName,
|
||||||
comments,
|
comments,
|
||||||
},
|
},
|
||||||
|
3
main.go
3
main.go
@@ -9,6 +9,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
@@ -1705,3 +1706,5 @@ func sendMessages(messages []Message) {
|
|||||||
m.Target.maybeQueueMessage(m.Message)
|
m.Target.maybeQueueMessage(m.Message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (cb *Catbox) version() string { return Version + "-" + runtime.Version() }
|
||||||
|
@@ -2,7 +2,7 @@ package main
|
|||||||
|
|
||||||
// CreatedDate is the date we're built. This would be nice to generate
|
// CreatedDate is the date we're built. This would be nice to generate
|
||||||
// dynamically, but I don't want to complicate the build.
|
// dynamically, but I don't want to complicate the build.
|
||||||
const CreatedDate = "2019-07-06"
|
const CreatedDate = "2019-07-08"
|
||||||
|
|
||||||
// Version is our version.
|
// Version is our version.
|
||||||
const Version = "catbox-1.12.0"
|
const Version = "catbox-1.13.0"
|
||||||
|
Reference in New Issue
Block a user