Add missing account-notify to permanentUpstreamCaps
This commit is contained in:
parent
4831b61186
commit
c6f5508765
@ -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",
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user