From 2c7ddd7719736e540163bc49717d20c149a84f1f Mon Sep 17 00:00:00 2001 From: tj Date: Fri, 12 Mar 2010 21:43:50 +0100 Subject: [PATCH] Fix time reply --- irc_callback.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc_callback.go b/irc_callback.go index ec3273e..f0bbca4 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -79,7 +79,8 @@ func (irc *IRCConnection) setupCallbacks() { }) irc.AddCallback("CTCP_TIME", func(e *IRCEvent) { - irc.SendRaw(fmt.Sprintf("NOTICE %s :\x01TIME %s\x01", e.Nick, time.LocalTime().Format("UnixDate"))) + ltime := time.LocalTime(); + irc.SendRaw(fmt.Sprintf("NOTICE %s :\x01TIME %s\x01", e.Nick, ltime.String())) }) irc.AddCallback("CTCP_PING", func(e *IRCEvent) { irc.SendRaw(fmt.Sprintf("NOTICE %s :\x01%s\x01", e.Nick, e.Message)) })