diff options
Diffstat (limited to '')
| -rw-r--r-- | irc/states.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/irc/states.go b/irc/states.go index 44d88ac..650c0e1 100644 --- a/irc/states.go +++ b/irc/states.go @@ -257,7 +257,11 @@ func (s *Session) NickCf() string { } func (s *Session) IsChannel(name string) bool { - return strings.IndexAny(name, "#&") == 0 // TODO compute CHANTYPES + chantypes, ok := s.features["CHANTYPES"] + if !ok { + chantypes = "#&" + } + return strings.IndexAny(name, chantypes) == 0 } func (s *Session) Casemap(name string) string { |
