Fix CAP LIST listing disabled capabilities

This commit is contained in:
Hubert Hirtz 2021-05-20 15:47:19 +02:00 committed by Simon Ser
parent ec26117c08
commit 3b41c87a41

View File

@ -617,8 +617,10 @@ func (dc *downstreamConn) handleCapCommand(cmd string, args []string) error {
} }
case "LIST": case "LIST":
var caps []string var caps []string
for name := range dc.caps { for name, enabled := range dc.caps {
caps = append(caps, name) if enabled {
caps = append(caps, name)
}
} }
// TODO: multi-line replies // TODO: multi-line replies