Fix time reply
This commit is contained in:
parent
3cf868b6ef
commit
2c7ddd7719
@ -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)) })
|
||||
|
Loading…
Reference in New Issue
Block a user