소스 검색

Merge pull request #1902 from slingamn/amode_v_join

fix #1901
tags/v2.10.0-rc1
Shivaram Lingamneni 2 년 전
부모
커밋
86c5839044
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      irc/channel.go

+ 2
- 1
irc/channel.go 파일 보기

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

Loading…
취소
저장