Skip to content

Commit

Permalink
fix #1901
Browse files Browse the repository at this point in the history
AMODE +v should allow you to join a +i channel
  • Loading branch information
slingamn committed Jan 19, 2022
1 parent 6dc6abc commit eb477c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion irc/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit eb477c3

Please sign in to comment.