From dbad4981ec182cd1a4c136b1ada5a0b12d0e3631 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 19 Aug 2022 16:44:02 -0400 Subject: [PATCH] Channel Type: Detect more private channels --- pkg/ircslack/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ircslack/channel.go b/pkg/ircslack/channel.go index 09c04ec..adf53dc 100644 --- a/pkg/ircslack/channel.go +++ b/pkg/ircslack/channel.go @@ -101,7 +101,7 @@ func (c *Channel) IsPublicChannel() bool { // IsPrivateChannel returns true if the channel is private. func (c *Channel) IsPrivateChannel() bool { - return c.IsGroup && c.IsPrivate + return (c.IsGroup||c.IsChannel) && c.IsPrivate } // IsMP returns true if it is a multi-party conversation.