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,9 +617,11 @@ 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 {
if enabled {
caps = append(caps, name) caps = append(caps, name)
} }
}
// TODO: multi-line replies // TODO: multi-line replies
dc.SendMessage(&irc.Message{ dc.SendMessage(&irc.Message{