Fix CAP LIST listing disabled capabilities
This commit is contained in:
parent
ec26117c08
commit
3b41c87a41
@ -617,9 +617,11 @@ func (dc *downstreamConn) handleCapCommand(cmd string, args []string) error {
|
||||
}
|
||||
case "LIST":
|
||||
var caps []string
|
||||
for name := range dc.caps {
|
||||
for name, enabled := range dc.caps {
|
||||
if enabled {
|
||||
caps = append(caps, name)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: multi-line replies
|
||||
dc.SendMessage(&irc.Message{
|
||||
|
Loading…
Reference in New Issue
Block a user