From ec4fb90d2b6267ebfdd232ee40266b05b487a293 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 15 Dec 2021 22:52:11 -0500 Subject: [PATCH] +I should allow unregistered users to join a +R channel See #1858: this was the intent all along, but I missed this issue. --- irc/channel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc/channel.go b/irc/channel.go index 6537537d..db42be65 100644 --- a/irc/channel.go +++ b/irc/channel.go @@ -780,7 +780,8 @@ func (channel *Channel) Join(client *Client, key string, isSajoin bool, rb *Resp } if details.account == "" && - (channel.flags.HasMode(modes.RegisteredOnly) || channel.server.Defcon() <= 2) { + (channel.flags.HasMode(modes.RegisteredOnly) || channel.server.Defcon() <= 2) && + !channel.lists[modes.InviteMask].Match(details.nickMaskCasefolded) { return errRegisteredOnly, forward } }