3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-15 00:19:29 +01:00
AMODE +v should allow you to join a +i channel
This commit is contained in:
Shivaram Lingamneni 2022-01-19 00:54:03 -05:00
parent 6dc6abc455
commit eb477c3793

View File

@ -767,7 +767,8 @@ func (channel *Channel) Join(client *Client, key string, isSajoin bool, rb *Resp
return errWrongChannelKey, forward
}
if channel.flags.HasMode(modes.InviteOnly) &&
// #1901: +h and up exempt from all restrictions, but +v additionally exempts from +i:
if channel.flags.HasMode(modes.InviteOnly) && persistentMode == 0 &&
!channel.lists[modes.InviteMask].Match(details.nickMaskCasefolded) {
return errInviteOnly, forward
}