rename application
--HG-- branch : nmdc-ircfrontend
This commit is contained in:
parent
fc0f66f864
commit
562e8a178a
2
main.go
2
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()
|
||||
|
@ -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":
|
||||
|
@ -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 {
|
Loading…
Reference in New Issue
Block a user