Fix CAP LIST listing disabled capabilities
This commit is contained in:
parent
ec26117c08
commit
3b41c87a41
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user