From 3cf868b6eff46662415d5590b1106fb2a773b625 Mon Sep 17 00:00:00 2001 From: tj Date: Fri, 12 Mar 2010 21:39:28 +0100 Subject: [PATCH] Fix time reply --- irc_callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc_callback.go b/irc_callback.go index 42d0f8a..ec3273e 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -79,7 +79,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().Format("ANSIC"))) + irc.SendRaw(fmt.Sprintf("NOTICE %s :\x01TIME %s\x01", e.Nick, time.LocalTime().Format("UnixDate"))) }) irc.AddCallback("CTCP_PING", func(e *IRCEvent) { irc.SendRaw(fmt.Sprintf("NOTICE %s :\x01%s\x01", e.Nick, e.Message)) })