Add missing account-notify to permanentUpstreamCaps

This commit is contained in:
Simon Ser 2021-11-19 11:55:22 +01:00
parent 4831b61186
commit c6f5508765
2 changed files with 2 additions and 1 deletions

View File

@ -2430,7 +2430,7 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
var bounds [2]time.Time var bounds [2]time.Time
bounds[0] = parseChatHistoryBound(boundsStr[0]) bounds[0] = parseChatHistoryBound(boundsStr[0])
if subcommand == "LATEST" && boundsStr[0] == "*" { if subcommand == "LATEST" && boundsStr[0] == "*" {
bounds[0] = time.Now(); bounds[0] = time.Now()
} else if bounds[0].IsZero() { } else if bounds[0].IsZero() {
return ircError{&irc.Message{ return ircError{&irc.Message{
Command: "FAIL", Command: "FAIL",

View File

@ -22,6 +22,7 @@ import (
// permanentUpstreamCaps is the static list of upstream capabilities always // permanentUpstreamCaps is the static list of upstream capabilities always
// requested when supported. // requested when supported.
var permanentUpstreamCaps = map[string]bool{ var permanentUpstreamCaps = map[string]bool{
"account-notify": true,
"account-tag": true, "account-tag": true,
"away-notify": true, "away-notify": true,
"batch": true, "batch": true,