This commit is contained in:
Simon Ser 2020-07-22 12:16:01 +02:00
parent 360ce5b72d
commit cd3eacdbfc
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 2 additions and 2 deletions

View file

@ -1666,7 +1666,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
}
remaining -= len(buf)
year, month, day := timestamp.Date()
timestamp = time.Date(year, month, day + 1, 0, 0, 0, 0, timestamp.Location())
timestamp = time.Date(year, month, day+1, 0, 0, 0, 0, timestamp.Location())
}
dc.SendMessage(&irc.Message{

View file

@ -160,7 +160,7 @@ func parseMessage(line, entity string, ref time.Time) (*irc.Message, time.Time,
Tags: map[string]irc.TagValue{
"time": irc.TagValue(t.UTC().Format(serverTimeLayout)),
},
Prefix: &irc.Prefix{Name: sender},
Prefix: &irc.Prefix{Name: sender},
Command: "PRIVMSG",
Params: []string{entity, text},
}