diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-01 12:37:37 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-01 12:37:37 +0200 |
commit | 058532e70a4dbfb476410fb30125b6a7d0d375b0 (patch) | |
tree | 6ad6632bddc3a3b0cdca387ee359d30cff1e0cff /irc/session.go | |
parent | Remove outdated UI tests (diff) |
Fetch missed messages on reconnect
just one step closer to proper CHATHISTORY support!! :=D ^v^
Diffstat (limited to '')
-rw-r--r-- | irc/session.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/irc/session.go b/irc/session.go index d08fb22..9f00dee 100644 --- a/irc/session.go +++ b/irc/session.go @@ -429,6 +429,12 @@ func (r *HistoryRequest) doRequest() { r.s.out <- NewMessage("CHATHISTORY", args...) } +func (r *HistoryRequest) After(t time.Time) { + r.command = "AFTER" + r.bounds = []string{formatTimestamp(t)} + r.doRequest() +} + func (r *HistoryRequest) Before(t time.Time) { r.command = "BEFORE" r.bounds = []string{formatTimestamp(t)} |