mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-28 01:38:10 -07:00
first pass at renaming Oragono to Ergo
This commit is contained in:
+5
-5
@@ -6,13 +6,13 @@ package irc
|
||||
import "fmt"
|
||||
|
||||
const (
|
||||
// SemVer is the semantic version of Oragono.
|
||||
// SemVer is the semantic version of Ergo.
|
||||
SemVer = "2.7.0-unreleased"
|
||||
)
|
||||
|
||||
var (
|
||||
// Ver is the full version of Oragono, used in responses to clients.
|
||||
Ver = fmt.Sprintf("oragono-%s", SemVer)
|
||||
// Ver is the full version of Ergo, used in responses to clients.
|
||||
Ver = fmt.Sprintf("ergo-%s", SemVer)
|
||||
// Commit is the full git hash, if available
|
||||
Commit string
|
||||
)
|
||||
@@ -21,8 +21,8 @@ var (
|
||||
func SetVersionString(version, commit string) {
|
||||
Commit = commit
|
||||
if version != "" {
|
||||
Ver = fmt.Sprintf("oragono-%s", version)
|
||||
Ver = fmt.Sprintf("ergo-%s", version)
|
||||
} else if len(Commit) == 40 {
|
||||
Ver = fmt.Sprintf("oragono-%s-%s", SemVer, Commit[:16])
|
||||
Ver = fmt.Sprintf("ergo-%s-%s", SemVer, Commit[:16])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user