diff options
Diffstat (limited to 'irc/states.go')
| -rw-r--r-- | irc/states.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/irc/states.go b/irc/states.go index 28fabb7..8f16d95 100644 --- a/irc/states.go +++ b/irc/states.go @@ -220,6 +220,15 @@ func (s *Session) Poll() (events <-chan Event) { return s.evts } +func (s *Session) HasCapability(capability string) bool { + _, ok := s.enabledCaps[capability] + return ok +} + +func (s *Session) Nick() string { + return s.nick +} + func (s *Session) IsChannel(name string) bool { return strings.IndexAny(name, "#&") == 0 // TODO compute CHANTYPES } |
