From f6ed22854234c6d651433c034578c10a4486480a Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Sat, 1 Aug 2020 18:03:26 +0200 Subject: Show messages from self when echo-message is disabled --- irc/states.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'irc/states.go') 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 } -- cgit v1.2.3