diff options
| author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-01 18:03:26 +0200 |
|---|---|---|
| committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-01 18:03:26 +0200 |
| commit | f6ed22854234c6d651433c034578c10a4486480a (patch) | |
| tree | 8c0590708d5f4d8933955afba70663436d9d6248 /irc/states.go | |
| parent | Handle self-NICK (diff) | |
Show messages from self when echo-message is disabled
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 } |
