]> Cypherpunks.ru repositories - goircd.git/blobdiff - daemon.go
Replace Makefile with redo, keep version in source code
[goircd.git] / daemon.go
index 1bcf877d959289417269ce5b2b603304125bb2f7..4b07e59fcdcfd4357515cd62cc42cfde889dc8de 100644 (file)
--- a/daemon.go
+++ b/daemon.go
@@ -1,11 +1,10 @@
 /*
 goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014-2018 | wn Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2020 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+the Free Software Foundation, version 3 of the License.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -231,7 +230,7 @@ func ClientRegister(client *Client, cmd string, cols []string) {
                }
                client.registered = true
                client.ReplyNicknamed("001", "Hi, welcome to IRC")
-               client.ReplyNicknamed("002", "Your host is "+*hostname+", running goircd "+version)
+               client.ReplyNicknamed("002", "Your host is "+*hostname+", running goircd "+Version)
                client.ReplyNicknamed("003", "This server was created sometime")
                client.ReplyNicknamed("004", *hostname+" goircd o o")
                SendLusers(client)
@@ -563,7 +562,7 @@ func Processor(events chan ClientEvent, finished chan struct{}) {
                                } else {
                                        debug = ""
                                }
-                               client.ReplyNicknamed("351", fmt.Sprintf("%s.%s %s :", version, debug, *hostname))
+                               client.ReplyNicknamed("351", fmt.Sprintf("%s.%s %s :", Version, debug, *hostname))
                        default:
                                client.ReplyNicknamed("421", cmd, "Unknown command")
                        }