From 0b97efd611e713719d8ab8a5647530abee1ecf46 Mon Sep 17 00:00:00 2001 From: Thomas Jager Date: Mon, 18 Jan 2010 22:51:32 +0100 Subject: [PATCH] Compile fix for new go version of time --- irc_callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc_callback.go b/irc_callback.go index 40f6f05..92e2a26 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -68,7 +68,7 @@ func (irc *IRCConnection) setupCallbacks() { }) irc.AddCallback("CTCP_TIME", func(e *IRCEvent) { - irc.SendRaw(fmt.Sprintf("NOTICE %s :\x01TIME %s\x01", e.Nick, time.LocalTime().Asctime())) + irc.SendRaw(fmt.Sprintf("NOTICE %s :\x01TIME %s\x01", e.Nick, time.LocalTime().Format("ANSIC"))) }) irc.AddCallback("CTCP_PING", func(e *IRCEvent) { irc.SendRaw(fmt.Sprintf("NOTICE %s :\x01%s\x01", e.Nick, e.Message)) })