From 0afa7edffe5a3e13bcc8c8496a1d056afbf432b4 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 8 Feb 2022 07:38:11 -0500 Subject: [PATCH] fix #1895 Include server start time in INFO output. --- irc/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/irc/handlers.go b/irc/handlers.go index c361ba77..831626ef 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -1152,6 +1152,7 @@ func infoHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons rb.Add(nil, server.name, RPL_INFO, nick, fmt.Sprintf(client.t("It was built from git hash %s."), Commit)) } rb.Add(nil, server.name, RPL_INFO, nick, fmt.Sprintf(client.t("It was compiled using %s."), runtime.Version())) + rb.Add(nil, server.name, RPL_INFO, nick, fmt.Sprintf(client.t("This server has been running since %s."), server.ctime.Format(time.RFC1123))) rb.Add(nil, server.name, RPL_INFO, nick, "") rb.Add(nil, server.name, RPL_INFO, nick, client.t("Ergo is released under the MIT license.")) rb.Add(nil, server.name, RPL_INFO, nick, "")