mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 05:19:25 +01:00
commit
86c5839044
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user