diff options
-rw-r--r-- | irc/session.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/irc/session.go b/irc/session.go index b6d5873..87b77b6 100644 --- a/irc/session.go +++ b/irc/session.go @@ -650,8 +650,10 @@ func (s *Session) handleMessageRegistered(msg Message, playback bool) (Event, er case "NEW": for _, c := range ParseCaps(caps) { s.availableCaps[c.Name] = c.Value - _, ok := SupportedCapabilities[c.Name] - if !ok { + if _, ok := SupportedCapabilities[c.Name]; !ok { + continue + } + if _, ok := s.enabledCaps[c.Name]; ok { continue } s.out <- NewMessage("CAP", "REQ", c.Name) |