From 562e8a178acd1879c3f2a5ae9f1bab852aa4773d Mon Sep 17 00:00:00 2001 From: "." <.@.> Date: Mon, 2 May 2016 18:45:13 +1200 Subject: [PATCH] rename application --HG-- branch : nmdc-ircfrontend --- main.go | 2 +- server.go | 5 +++-- rosella.go => typedefs.go | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) rename rosella.go => typedefs.go (97%) diff --git a/main.go b/main.go index 5557adb..81f1934 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,7 @@ func main() { flag.Parse() - log.Printf("Rosella v%s Initialising.", VERSION) + log.Println("Starting server...") //Init rosella itself server := NewServer() diff --git a/server.go b/server.go index f91d4f9..e5c260a 100644 --- a/server.go +++ b/server.go @@ -20,7 +20,8 @@ func NewServer() *Server { clientMap: make(map[string]*Client), channelMap: make(map[string]*Channel), operatorMap: make(map[string][]byte), - motd: "Welcome to IRC. Powered by Rosella."} + motd: "This server is running " + APP_DESCRIPTION, + } } func (s *Server) Run() { @@ -87,7 +88,7 @@ func (s *Server) handleCommand(client *Client, command string, args []string) { case "PING": client.reply(rplPong) case "INFO": - client.reply(rplInfo, "Rosella IRCD github.com/eXeC64/Rosella") + client.reply(rplInfo, APP_DESCRIPTION) case "VERSION": client.reply(rplVersion, VERSION) case "NICK": diff --git a/rosella.go b/typedefs.go similarity index 97% rename from rosella.go rename to typedefs.go index be3250d..017c8cf 100644 --- a/rosella.go +++ b/typedefs.go @@ -3,7 +3,8 @@ package main import "net" const ( - VERSION = "1.2.0" + VERSION = "1.0.0" + APP_DESCRIPTION = "nmdc-ircfrontend v"+VERSION ) type Server struct {