From 521b3e9a1cdc77b48dcb5ace253efd90441e15e3 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 d3061fcd..3833d254 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 } }