3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-15 00:19:29 +01:00

Merge pull request #1871 from slingamn/invite_mask_unregistered_join

+I should allow unregistered users to join a +R channel
This commit is contained in:
Shivaram Lingamneni 2021-12-16 00:41:24 -05:00 committed by GitHub
commit c5746c5105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -780,7 +780,8 @@ func (channel *Channel) Join(client *Client, key string, isSajoin bool, rb *Resp
} }
if details.account == "" && 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 return errRegisteredOnly, forward
} }
} }