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()
|
flag.Parse()
|
||||||
|
|
||||||
log.Printf("Rosella v%s Initialising.", VERSION)
|
log.Println("Starting server...")
|
||||||
|
|
||||||
//Init rosella itself
|
//Init rosella itself
|
||||||
server := NewServer()
|
server := NewServer()
|
||||||
|
@ -20,7 +20,8 @@ func NewServer() *Server {
|
|||||||
clientMap: make(map[string]*Client),
|
clientMap: make(map[string]*Client),
|
||||||
channelMap: make(map[string]*Channel),
|
channelMap: make(map[string]*Channel),
|
||||||
operatorMap: make(map[string][]byte),
|
operatorMap: make(map[string][]byte),
|
||||||
motd: "Welcome to IRC. Powered by Rosella."}
|
motd: "This server is running " + APP_DESCRIPTION,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) Run() {
|
func (s *Server) Run() {
|
||||||
@ -87,7 +88,7 @@ func (s *Server) handleCommand(client *Client, command string, args []string) {
|
|||||||
case "PING":
|
case "PING":
|
||||||
client.reply(rplPong)
|
client.reply(rplPong)
|
||||||
case "INFO":
|
case "INFO":
|
||||||
client.reply(rplInfo, "Rosella IRCD github.com/eXeC64/Rosella")
|
client.reply(rplInfo, APP_DESCRIPTION)
|
||||||
case "VERSION":
|
case "VERSION":
|
||||||
client.reply(rplVersion, VERSION)
|
client.reply(rplVersion, VERSION)
|
||||||
case "NICK":
|
case "NICK":
|
||||||
|
@ -3,7 +3,8 @@ package main
|
|||||||
import "net"
|
import "net"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VERSION = "1.2.0"
|
VERSION = "1.0.0"
|
||||||
|
APP_DESCRIPTION = "nmdc-ircfrontend v"+VERSION
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
Loading…
Reference in New Issue
Block a user